Complete the code to define a GraphQL field that returns a string.
type Query { greeting: [1] }The String scalar type is used to represent text in GraphQL.
Complete the code to define a GraphQL field that returns an integer.
type Query { age: [1] }The Int scalar type is used for whole numbers in GraphQL.
Fix the error in the code by choosing the correct scalar type for a price field that can have decimals.
type Product { price: [1] }The Float scalar type is used for numbers with decimals in GraphQL, such as prices.
Fill both blanks to define a GraphQL type with a Boolean field and an ID field.
type User { isActive: [1] id: [2] }Boolean is used for true/false values, and ID is used for unique identifiers in GraphQL.
Fill all three blanks to define a GraphQL type with a String name, an Int age, and a Boolean isMember field.
type Member { name: [1] age: [2] isMember: [3] }String is for text like names, Int for whole numbers like age, and Boolean for true/false values like membership status.