Complete the code to define a GraphQL input type for a user with a name field.
input UserInput { name: [1] }The name field should be of type String because it holds text data.
Complete the code to define an input type with an age field that must be an integer.
input PersonInput { age: [1] }The age field should be Int because it represents whole numbers.
Fix the error in the input type by choosing the correct type for the isActive field.
input StatusInput { isActive: [1] }The isActive field should be Boolean because it represents true or false values.
Fill both blanks to define an input type with a required email field and an optional age field.
input ContactInput { email: [1] age: [2] }The email field is required, so it uses String!. The age field is optional, so it uses Int without an exclamation mark.
Fill all three blanks to define an input type with a required username, an optional score, and a flag indicating if the user is active.
input UserStatsInput { username: [1] score: [2] isActive: [3] }The username is required text, so it uses String!. The score is an optional integer, so it uses Int. The isActive flag is a boolean value.