Class ConnectionObjectDefinition
java.lang.Object
no.sikt.graphitron.definitions.objects.AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
no.sikt.graphitron.definitions.objects.ConnectionObjectDefinition
- All Implemented Interfaces:
ObjectSpecification<ObjectField>
public class ConnectionObjectDefinition
extends AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
Object that corresponds to a GraphQL type whose name ends with the "Connection" suffix.
The behaviour of this class should always reflect the connections specification.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionObjectDefinition(graphql.language.ObjectTypeDefinition objectDefinition, EdgeObjectDefinition edgeObject) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ObjectField>createFields(graphql.language.ObjectTypeDefinition objectDefinition) Methods inherited from class no.sikt.graphitron.definitions.objects.AbstractObjectDefinition
equals, getClassReference, getFieldByName, getFields, getGraphClassName, getName, getObjectDefinition, hasField, hashCode, isOperationRoot
-
Constructor Details
-
ConnectionObjectDefinition
public ConnectionObjectDefinition(graphql.language.ObjectTypeDefinition objectDefinition, EdgeObjectDefinition edgeObject)
-
-
Method Details
-
createFields
- Specified by:
createFieldsin classAbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
-
getNodeType
- Returns:
- The underlying GraphQL object that is referred to within the edge type's node field.
-
getEdgeObject
- Returns:
- Edge object for this connection. Defined by the "edges" field on the connection object.
-