GraphQL - Schema Definition Language (SDL)
You want to create an input type for updating a user's profile where all fields are optional except
id. Which input type definition is correct?id. Which input type definition is correct?id must be required (non-null). Other fields should be optional, so no exclamation marks.id: ID! required and others optional. input UpdateUserInput { id: ID name: String! email: String! age: Int! } makes id optional and others required, wrong. input UpdateUserInput { id: ID! name: String! email: String! age: Int! } makes all fields required, wrong. input UpdateUserInput { id: ID! name: String! email: String age: Int } makes name required, which is not desired.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions