Class __Schema
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<__Schema>
-
- org.topbraidlive.client.java.graphql.platform.__Schema
-
- All Implemented Interfaces:
Serializable
public class __Schema extends AbstractResponse<__Schema>
A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<__Directive>
getDirectives()
'A list of all directives supported by this server.String
getGraphQlTypeName()
__Type
getMutationType()
If this server supports mutation, the type that mutation operations will be rooted at.__Type
getQueryType()
The type that query operations will be rooted at.__Type
getSubscriptionType()
'If this server support subscription, the type that subscription operations will be rooted at.List<__Type>
getTypes()
A list of all types supported by this server.__Schema
setDirectives(List<__Directive> arg)
__Schema
setMutationType(__Type arg)
__Schema
setQueryType(__Type arg)
__Schema
setSubscriptionType(__Type arg)
__Schema
setTypes(List<__Type> arg)
boolean
unwrapsToObject(String key)
-
Methods inherited from class com.shopify.graphql.support.AbstractResponse
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAlias
-
-
-
-
Constructor Detail
-
__Schema
public __Schema()
-
__Schema
public __Schema(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getQueryType
public __Type getQueryType()
The type that query operations will be rooted at.
-
getMutationType
public __Type getMutationType()
If this server supports mutation, the type that mutation operations will be rooted at.
-
getDirectives
public List<__Directive> getDirectives()
'A list of all directives supported by this server.
-
setDirectives
public __Schema setDirectives(List<__Directive> arg)
-
getSubscriptionType
public __Type getSubscriptionType()
'If this server support subscription, the type that subscription operations will be rooted at.
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<__Schema>
-
-