Created
June 28, 2020 11:49
-
-
Save AyoAlfonso/e038f321d0b802a807588bb763cc48d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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