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
Okay so the prototype is not related to GraphQL or Fastify-GraphQL. It comes from Node and I don't think they're changing it anytime soon. Ref: nodejs/node#30183
After spending 2+ hours, I've found and tested that it just adds verbosity and doesn't actually cause any harm.
Fastify:
Not a big issue and workarounds are available so closing now.
Sending payload in Mutation also returns this "[Object: null prototype]" as a reference key for the actual payload - seems to be a bug.
Error:
Workaround:
JSON.parse(JSON.stringify(payload))
Reproduce:
server.js config for GQL Fastify
Resolver
TypeDefs / Schema
Mutation Query
Might be similar to this: apollographql/apollo-server#3149
Let me know if more details are required.
The text was updated successfully, but these errors were encountered: