Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A query selects Product.internalCost, which is absent from the schema. What should happen?" on CodeWiki (https://codewiki.com/practice/mcq/backend/graphql/validation-before-execution/).
Context (verbatim from the page):
"""
A query selects Product.internalCost, which is absent from the schema. What should happen?
Validation rejects the operation before product resolvers execute.
The server silently omits internalCost and executes the rest.
The product resolver runs and GraphQL changes internalCost to null.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Backend. Where you are unsure, say so.