Package graphql.relay
Class Relay
- java.lang.Object
-
- graphql.relay.Relay
-
@PublicApi public class Relay extends java.lang.Object
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 Modifier and Type Class Description static class
Relay.ResolvedGlobalId
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NODE
static GraphQLObjectType
pageInfoType
-
Constructor Summary
Constructors Constructor Description Relay()
-
Method Summary
-
-
-
Field Detail
-
NODE
public static final java.lang.String NODE
- See Also:
- Constant Field Values
-
pageInfoType
public static final GraphQLObjectType pageInfoType
-
-
Method Detail
-
nodeInterface
public GraphQLInterfaceType nodeInterface(TypeResolver typeResolver)
-
nodeField
public GraphQLFieldDefinition nodeField(GraphQLInterfaceType nodeInterface, DataFetcher nodeDataFetcher)
-
getConnectionFieldArguments
public java.util.List<GraphQLArgument> getConnectionFieldArguments()
-
getBackwardPaginationConnectionFieldArguments
public java.util.List<GraphQLArgument> getBackwardPaginationConnectionFieldArguments()
-
getForwardPaginationConnectionFieldArguments
public java.util.List<GraphQLArgument> getForwardPaginationConnectionFieldArguments()
-
edgeType
public GraphQLObjectType edgeType(java.lang.String name, GraphQLOutputType nodeType, GraphQLInterfaceType nodeInterface, java.util.List<GraphQLFieldDefinition> edgeFields)
-
connectionType
public GraphQLObjectType connectionType(java.lang.String name, GraphQLObjectType edgeType, java.util.List<GraphQLFieldDefinition> connectionFields)
-
mutationWithClientMutationId
public GraphQLFieldDefinition mutationWithClientMutationId(java.lang.String name, java.lang.String fieldName, java.util.List<GraphQLInputObjectField> inputFields, java.util.List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher)
-
mutation
public GraphQLFieldDefinition mutation(java.lang.String name, java.lang.String fieldName, java.util.List<GraphQLInputObjectField> inputFields, java.util.List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher)
-
toGlobalId
public java.lang.String toGlobalId(java.lang.String type, java.lang.String id)
-
fromGlobalId
public Relay.ResolvedGlobalId fromGlobalId(java.lang.String globalId)
-
-