@PublicApi public class Introspection extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Introspection.DirectiveLocation |
static class |
Introspection.TypeKind |
Modifier and Type | Field and Description |
---|---|
static GraphQLObjectType |
__Directive |
static GraphQLEnumType |
__DirectiveLocation |
static GraphQLObjectType |
__EnumValue |
static GraphQLObjectType |
__Field |
static GraphQLObjectType |
__InputValue |
static GraphQLObjectType |
__Schema |
static GraphQLObjectType |
__Type |
static GraphQLEnumType |
__TypeKind |
static java.util.Set<java.lang.String> |
INTROSPECTION_SYSTEM_FIELDS |
static GraphQLFieldDefinition |
SchemaMetaFieldDef |
static IntrospectionDataFetcher<?> |
SchemaMetaFieldDefDataFetcher |
static GraphQLFieldDefinition |
TypeMetaFieldDef |
static IntrospectionDataFetcher<?> |
TypeMetaFieldDefDataFetcher |
static GraphQLFieldDefinition |
TypeNameMetaFieldDef |
static IntrospectionDataFetcher<?> |
TypeNameMetaFieldDefDataFetcher |
Constructor and Description |
---|
Introspection() |
Modifier and Type | Method and Description |
---|---|
static void |
addCodeForIntrospectionTypes(GraphQLCodeRegistry.Builder codeRegistry) |
static GraphQLFieldDefinition |
buildSchemaField(GraphQLObjectType introspectionSchemaType) |
static GraphQLFieldDefinition |
buildTypeField(GraphQLObjectType introspectionSchemaType) |
static GraphQLFieldDefinition |
getFieldDef(GraphQLSchema schema,
GraphQLCompositeType parentType,
java.lang.String fieldName)
This will look up a field definition by name, and understand that fields like __typename and __schema are special
and take precedence in field resolution
|
static boolean |
isIntrospectionTypes(GraphQLNamedType type) |
public static final GraphQLEnumType __TypeKind
public static final GraphQLObjectType __InputValue
public static final GraphQLObjectType __Field
public static final GraphQLObjectType __EnumValue
public static final GraphQLObjectType __Type
public static final GraphQLEnumType __DirectiveLocation
public static final GraphQLObjectType __Directive
public static final GraphQLObjectType __Schema
public static final GraphQLFieldDefinition SchemaMetaFieldDef
public static final GraphQLFieldDefinition TypeMetaFieldDef
public static final GraphQLFieldDefinition TypeNameMetaFieldDef
public static final java.util.Set<java.lang.String> INTROSPECTION_SYSTEM_FIELDS
public static final IntrospectionDataFetcher<?> SchemaMetaFieldDefDataFetcher
public static final IntrospectionDataFetcher<?> TypeMetaFieldDefDataFetcher
public static final IntrospectionDataFetcher<?> TypeNameMetaFieldDefDataFetcher
public static void addCodeForIntrospectionTypes(GraphQLCodeRegistry.Builder codeRegistry)
public static GraphQLFieldDefinition buildSchemaField(GraphQLObjectType introspectionSchemaType)
public static GraphQLFieldDefinition buildTypeField(GraphQLObjectType introspectionSchemaType)
public static boolean isIntrospectionTypes(GraphQLNamedType type)
public static GraphQLFieldDefinition getFieldDef(GraphQLSchema schema, GraphQLCompositeType parentType, java.lang.String fieldName)
schema
- the schema to useparentType
- the type of the parent objectfieldName
- the field to look up