Complete the code to define a GraphQL schema with a visible Query type.
type [1] { hello: String }The root query type in GraphQL schema is named Query. This makes the schema visible for queries.
Complete the directive to hide a field from the schema.
type Query { secretField: String [1] }The @hidden directive is used to hide fields from the schema visibility.
Fix the error in the schema to properly hide the Mutation type.
schema { query: Query mutation: [1] }To hide the Mutation type, you must add the @hidden directive after its name in the schema definition.
Fill both blanks to define a schema with a visible Query and a hidden Mutation.
schema { query: [1] mutation: [2] }The query root is set to Query to be visible, and the mutation root is set to Mutation @hidden to hide it.
Fill all three blanks to define a schema with a visible Query, a hidden Mutation, and a visible Subscription.
schema { query: [1] mutation: [2] subscription: [3] }The schema has a visible Query, a hidden Mutation @hidden, and a visible Subscription root.