Interface GraphQLSchema
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsGraphQLField
(String objectTypeName, String fieldName) Verifies that a field with the name @param fieldName exists for a GraphQL object type with the name @param objectTypeName in the endpoint (as defined by its schema).boolean
containsGraphQLObjectType
(String objectTypeName) Verifies that a GraphQL object type with the name @param objectTypeName exists for the endpoint (as defined by its schema).getEntrypoint
(String objectTypeName, GraphQLEntrypointType fieldType) getGraphQLFieldType
(String objectTypeName, String fieldName) getGraphQLFieldValueType
(String objectTypeName, String fieldName) getGraphQLObjectFields
(String objectTypeName)
-
Method Details
-
containsGraphQLObjectType
Verifies that a GraphQL object type with the name @param objectTypeName exists for the endpoint (as defined by its schema). -
containsGraphQLField
-
getGraphQLFieldType
- Returns:
- a GraphQLFieldType enum that describes whether the field with the name @param fieldName of the GraphQL object type of the name @param objectTypeName is a scalar value or an object. If the parameter names provided doesn't correspond to an object type or a field for the endpoint return null.
-
getGraphQLFieldValueType
- Parameters:
fieldName
- of the GraphQL object type with the name @param objectTypeName . If the parameter names provided doesn't correspond to an object type or a field for the endpoint return null.- Returns:
- the value type (String,Int,... etc.) for the field with the name
-
getGraphQLObjectTypes
-
getGraphQLObjectFields
- Returns:
- a map of field names for the GraphQL object type with the name @param objectTypeName mapped to their respective GraphQLField objects containing information about the field. If the parameter name provided doesn't correspond to an object type for the endpoint return null.
-
getEntrypoint
- Parameters:
obejectTypeName
- is the name of the object type the field returns and @param fieldType is an enum describing whether the field returns a single object, a filtered list of objects or a list of all objects. If the parameter names provided doesn't correspond to an object type or a GraphQLEntrypointType for the endpoint return null.- Returns:
- a GraphQLEntrypoint object containing information about a specific field in the GraphQL "query" type.
-