Complete the code to define a Node interface with an ID field.
interface Node { id: [1]! }The Node interface requires an id field of type ID! which is a unique identifier.
Complete the code to make the User type implement the Node interface.
type User implements [1] { id: ID! name: String! }The User type implements the Node interface to ensure it has an id field.
Fix the error in the Node interface definition by completing the type of the id field.
interface Node { id: [1] }The id field must be of type ID! to be a non-null unique identifier.
Fill both blanks to define a Query type with a node field that returns a Node by id.
type Query { node(id: [1]!): [2] }The node field takes an id of type ID! and returns a Node interface type.
Fill all three blanks to define a schema with Node interface, User type implementing Node, and Query type with node field.
interface [1] { id: ID! } type [2] implements Node { id: ID! name: String! } type [3] { node(id: ID!): Node }
This schema defines the Node interface, a User type implementing Node, and a Query type with a node field to fetch any Node by id.