You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to test https://github.com/graphql-nexus/examples/tree/master/plugins-prisma-and-jwt-auth-and-shield
and saw that singup mutation have type: 'AuthPayload',
When I try to type in playground this mutation with correct values like name, email and password I get error because type: 'AuthPayload', requried different values.
I think it's probably bug so I create new type schema.objectType({ name: 'SingUpInput', definition(t) { t.string('name') t.string('email') t.string('password') }, })
but then on response get "data": { "signup": { "name": null, "email": null, "password": null } } }
I can't find information about type and input in the documentation, so maybe someone could explain to me how to fix this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I try to test
https://github.com/graphql-nexus/examples/tree/master/plugins-prisma-and-jwt-auth-and-shield
and saw that singup mutation have
type: 'AuthPayload',
When I try to type in playground this mutation with correct values like name, email and password I get error because
type: 'AuthPayload',
requried different values.I think it's probably bug so I create new type
schema.objectType({ name: 'SingUpInput', definition(t) { t.string('name') t.string('email') t.string('password') }, })
but then on response get
"data": { "signup": { "name": null, "email": null, "password": null } } }
I can't find information about type and input in the documentation, so maybe someone could explain to me how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions