schemaGraphQLType top-level property
The schema introspection GraphQLType
Implementation
final schemaGraphQLType = objectType<GraphQLSchema>('__Schema', fields: [
field(
'description',
graphQLString,
resolve: (schema, ctx) => schema.description,
),
field(
'types',
listOf(_reflectTypeType().nonNull()).nonNull(),
resolve: (schema, ctx) => schema.allTypes,
),
field(
'queryType',
_reflectTypeType().nonNull(),
resolve: (schema, ctx) => schema.queryType,
),
field(
'mutationType',
_reflectTypeType(),
resolve: (schema, ctx) => schema.mutationType,
),
field(
'subscriptionType',
_reflectTypeType(),
resolve: (schema, ctx) => schema.subscriptionType,
),
field(
'directives',
listOf(_reflectDirectiveType().nonNull()).nonNull(),
description: 'A list of all directives supported by this server.',
resolve: (schema, ctx) => schema.directives,
),
]);