I think I’m missing something very obvious trying out the schema extension here: https://github.com/graphcool-examples/functions/tree/master/email-user-management/functions/signup. I followed the instructions. when I do a “Test Run” all looks good, but when I try to use it from the main “Playground” it fails.
Here’s my mutation in the playground:
signupEmailUser(email:"chris@echobind.com", password:"test1234") {
id
}
}
And here’s the error:
"data": {
"signupEmailUser": null
},
"errors": [
{
"locations": [
{
"line": 2,
"column": 3
}
],
"functionError": "Error: Unknown argument 'email' on field 'User' of type 'Query'. (line 3, column 12):\n User(email: \"chris@echobind.com\") {\n ^: {\"response\":{\"data\":null,\"errors\":[{\"message\":\"Unknown argument 'email' on field 'User' of type 'Query'. (line 3, column 12):\\n User(email: \\\"chris@echobind.com\\\") {\\n ^\",\"locations\":[{\"line\":3,\"column\":12}]}],\"status\":200},\"request\":{\"query\":\"\\n query {\\n User(email: \\\"chris@echobind.com\\\") {\\n id\\n }\\n }\"}}",
"path": [
"signupEmailUser"
],
"code": 5001,
"message": "function execution error: Error: Unknown argument 'email' on field 'User' of type 'Query'. (line 3, column 12):\n User(email: \"chris@echobind.com\") {\n ^: {\"response\":{\"data\":null,\"errors\":[{\"message\":\"Unknown argument 'email' on field 'User' of type 'Query'. (line 3, column 12):\\n User(email: \\\"chris@echobind.com\\\") {\\n ^\",\"locations\":[{\"line\":3,\"column\":12}]}],\"status\":200},\"request\":{\"query\":\"\\n query {\\n User(email: \\\"chris@echobind.com\\\") {\\n id\\n }\\n }\"}}",
"requestId": "simple:cj5y0djgn4hrm01472znstweu"
}
]
}```