public class InputFieldFactory extends Object implements GraphQLFieldFactory
GraphQLFieldFactory that handles input fields| Modifier and Type | Field and Description |
|---|---|
protected String |
tokenizeXPath
The XPath selector for the tokenize property
|
| Constructor and Description |
|---|
InputFieldFactory(String tokenizeXPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
createField(org.dom4j.Document contentTypeDefinition,
org.dom4j.Node contentTypeField,
String contentTypeFieldId,
String parentGraphQLTypeName,
graphql.schema.GraphQLObjectType.Builder parentGraphQLType,
String graphQLFieldName,
graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
Adds all the required objects for a content-type field to a
GraphQLObjectType |
protected String tokenizeXPath
public InputFieldFactory(String tokenizeXPath)
public void createField(org.dom4j.Document contentTypeDefinition,
org.dom4j.Node contentTypeField,
String contentTypeFieldId,
String parentGraphQLTypeName,
graphql.schema.GraphQLObjectType.Builder parentGraphQLType,
String graphQLFieldName,
graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
GraphQLObjectTypecreateField in interface GraphQLFieldFactorycontentTypeDefinition - the XML document with the content type definitioncontentTypeField - the XML node with the content-type fieldcontentTypeFieldId - the content-type field IDparentGraphQLTypeName - the field's parent GraphQL type nameparentGraphQLType - the field's parent GraphQLObjectTypegraphQLFieldName - the field's GraphQL-friendly namegraphQLField - the field's GraphQLFieldDefinitionCopyright © 2023 CrafterCMS. All rights reserved.