Closed LOGANLEEE closed 4 years ago
Page: https://www.howtographql.com/graphql-js/6-authentication/
mutation { post( url: "www.graphqlconf.org" description: "An awesome GraphQL conference" ) { id } }
{ "data": null, "errors": [ { "message": "Variable '$data' expected value of type 'LinkCreateInput!' but got: {\"url\":\"www.graphqlconf.org\",\"description\":\"An awesome GraphQL conference\",\"postedBy\":{\"connect\":{\"id\":\"cjyx7ckbt000l0766ugilpppy\"}}}. Reason: 'postedBy' Field 'postedBy' is not defined in the input type 'LinkCreateInput'. (line 1, column 11):\nmutation ($data: LinkCreateInput!) {\n ^", "locations": [ { "line": 2, "column": 3 } ], "path": [ "post" ] } ] }
I just did try on GraphQL server that I cloned from this repo.
Looks like a misconfiguration, but what was the fix?
Page: https://www.howtographql.com/graphql-js/6-authentication/
I just did try on GraphQL server that I cloned from this repo.