Skip to content

Instantly share code, notes, and snippets.

@chnirt
Last active June 18, 2019 07:56
Show Gist options
  • Save chnirt/0828c68303f18571c44125195dfc21e6 to your computer and use it in GitHub Desktop.
Save chnirt/0828c68303f18571c44125195dfc21e6 to your computer and use it in GitHub Desktop.
NestJs
type User {
_id: String!
username: String!
password: String!
}
input UserInput {
username: String!
password: String!
}
type Query {
hello: String!
users: [User!]
}
type Mutation {
createUser(input: UserInput!): User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment