Skip to content

Instantly share code, notes, and snippets.

@AyoAlfonso
Created June 28, 2020 11:49
Show Gist options
  • Save AyoAlfonso/e038f321d0b802a807588bb763cc48d5 to your computer and use it in GitHub Desktop.
Save AyoAlfonso/e038f321d0b802a807588bb763cc48d5 to your computer and use it in GitHub Desktop.
/**
Using input object type for mutations
**/
type Mutation {
register(input : createPersonInput!):RegisterUserResponse!
}
input createPersonInput{
name: String!
email: String!
password: String!
}
type User{
id:ID!
email:String
name: String
password:String
createdAt:DateTime!
}
type RegisterUserResponse{
user:User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment