Class EdgeObjectDefinition
java.lang.Object
no.sikt.graphitron.definitions.objects.AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
no.sikt.graphitron.definitions.objects.EdgeObjectDefinition
- All Implemented Interfaces:
ObjectSpecification<ObjectField>
public class EdgeObjectDefinition
extends AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
Object that corresponds to a GraphQL type which is referred to by a connection's "edges" field.
The behaviour of this class should always reflect the connections specification.
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeObjectDefinition(graphql.language.ObjectTypeDefinition objectDefinition) -
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
-
EdgeObjectDefinition
public EdgeObjectDefinition(graphql.language.ObjectTypeDefinition objectDefinition)
-
-
Method Details
-
createFields
- Specified by:
createFieldsin classAbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
-
getNodeType
- Returns:
- The underlying GraphQL object name that is referred to by the object's node field.
-
getCursor
- Returns:
- The specification-required cursor field for the edge type.
-