Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created May 26, 2020 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/596728c1944b5ff0bae5f9e292750368 to your computer and use it in GitHub Desktop.
Save marshallmurphy/596728c1944b5ff0bae5f9e292750368 to your computer and use it in GitHub Desktop.
# src/schema.graphql
type Query {
users: [User!]!
}
type User {
id: ID!
name: String!
email: String!
password: String!
}
type Mutation {
signup(email: String!, password: String!, name: String!): AuthPayload
}
type AuthPayload {
token: String
user: User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment