Last active
May 2, 2020 10:51
-
-
Save a7v8x/e917dfc9373fb3fe0d88151e7429498d to your computer and use it in GitHub Desktop.
Create user https://atheros.ai/blog/input-object-type-as-an-argument-for-graphql-mutations-and-queries
This file contains 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
mutation createUser { | |
createUser(input: { | |
username: "test", | |
email: "test@test.cz", | |
phone: "479332973", | |
firstName: "David", | |
lastName: "Test" | |
}) { | |
user { | |
id | |
username | |
phone | |
firstName | |
lastName | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment