Package graphql.relay
Class Relay
java.lang.Object
graphql.relay.Relay
This can be used to compose graphql runtime types that implement
that Relay specification.
See https://facebook.github.io/relay/graphql/connections.htm
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectionType
(String name, GraphQLObjectType edgeType, List<GraphQLFieldDefinition> connectionFields) edgeType
(String name, GraphQLOutputType nodeType, GraphQLInterfaceType nodeInterface, List<GraphQLFieldDefinition> edgeFields) fromGlobalId
(String globalId) mutation
(String name, String fieldName, List<GraphQLInputObjectField> inputFields, List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher) mutationWithClientMutationId
(String name, String fieldName, List<GraphQLInputObjectField> inputFields, List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher) nodeField
(GraphQLInterfaceType nodeInterface, DataFetcher nodeDataFetcher) nodeInterface
(TypeResolver typeResolver) toGlobalId
(String type, String id)
-
Field Details
-
NODE
- See Also:
-
pageInfoType
-
-
Constructor Details
-
Relay
public Relay()
-
-
Method Details
-
nodeInterface
-
nodeField
public GraphQLFieldDefinition nodeField(GraphQLInterfaceType nodeInterface, DataFetcher nodeDataFetcher) -
getConnectionFieldArguments
-
getBackwardPaginationConnectionFieldArguments
-
getForwardPaginationConnectionFieldArguments
-
edgeType
public GraphQLObjectType edgeType(String name, GraphQLOutputType nodeType, GraphQLInterfaceType nodeInterface, List<GraphQLFieldDefinition> edgeFields) -
connectionType
public GraphQLObjectType connectionType(String name, GraphQLObjectType edgeType, List<GraphQLFieldDefinition> connectionFields) -
mutationWithClientMutationId
public GraphQLFieldDefinition mutationWithClientMutationId(String name, String fieldName, List<GraphQLInputObjectField> inputFields, List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher) -
mutation
public GraphQLFieldDefinition mutation(String name, String fieldName, List<GraphQLInputObjectField> inputFields, List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher) -
toGlobalId
-
fromGlobalId
-