public class Relay
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Relay.ResolvedGlobalId |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NODE |
Constructor and Description |
---|
Relay() |
Modifier and Type | Method and Description |
---|---|
GraphQLObjectType |
connectionType(java.lang.String name,
GraphQLObjectType edgeType,
java.util.List<GraphQLFieldDefinition> connectionFields) |
GraphQLObjectType |
edgeType(java.lang.String name,
GraphQLOutputType nodeType,
GraphQLInterfaceType nodeInterface,
java.util.List<GraphQLFieldDefinition> edgeFields) |
Relay.ResolvedGlobalId |
fromGlobalId(java.lang.String globalId) |
java.util.List<GraphQLArgument> |
getConnectionFieldArguments() |
GraphQLFieldDefinition |
mutationWithClientMutationId(java.lang.String name,
java.lang.String fieldName,
java.util.List<GraphQLInputObjectField> inputFields,
java.util.List<GraphQLFieldDefinition> outputFields,
DataFetcher dataFetcher) |
GraphQLFieldDefinition |
nodeField(GraphQLInterfaceType nodeInterface,
DataFetcher nodeDataFetcher) |
GraphQLInterfaceType |
nodeInterface(TypeResolver typeResolver) |
java.lang.String |
toGlobalId(java.lang.String type,
java.lang.String id) |
public static final java.lang.String NODE
public GraphQLInterfaceType nodeInterface(TypeResolver typeResolver)
public GraphQLFieldDefinition nodeField(GraphQLInterfaceType nodeInterface, DataFetcher nodeDataFetcher)
public java.util.List<GraphQLArgument> getConnectionFieldArguments()
public GraphQLObjectType edgeType(java.lang.String name, GraphQLOutputType nodeType, GraphQLInterfaceType nodeInterface, java.util.List<GraphQLFieldDefinition> edgeFields)
public GraphQLObjectType connectionType(java.lang.String name, GraphQLObjectType edgeType, java.util.List<GraphQLFieldDefinition> connectionFields)
public GraphQLFieldDefinition mutationWithClientMutationId(java.lang.String name, java.lang.String fieldName, java.util.List<GraphQLInputObjectField> inputFields, java.util.List<GraphQLFieldDefinition> outputFields, DataFetcher dataFetcher)
public java.lang.String toGlobalId(java.lang.String type, java.lang.String id)
public Relay.ResolvedGlobalId fromGlobalId(java.lang.String globalId)