- Clone the repo then run npm install
- Run npm start
- Go to http://localhost:8080/playground
- Paste this mutation into a tab
mutation (
$name: String!
$email: String!
) {
createUser(
name: $name
email: $email
) {
name,
email
}
}
# Variables
# In this example, name must be lowercase, alphabetic and not more than 50 characters
{
"name": "abc",
"email": "abc"
}
- Run the mutation with some malformed email or name