public class InputFieldFactory extends Object implements GraphQLFieldFactory
GraphQLFieldFactory
that handles input fieldsModifier 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)
GraphQLObjectType
createField
in interface GraphQLFieldFactory
contentTypeDefinition
- 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 GraphQLObjectType
graphQLFieldName
- the field's GraphQL-friendly namegraphQLField
- the field's GraphQLFieldDefinition
Copyright © 2023 CrafterCMS. All rights reserved.