public class RepeatGroupFieldFactory extends Object implements GraphQLFieldFactory
GraphQLFieldFactory
that handles repeating-group fieldsModifier and Type | Field and Description |
---|---|
protected String |
fieldsXPath |
protected GraphQLTypeFactory |
typeFactory |
Constructor and Description |
---|
RepeatGroupFieldFactory() |
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 |
void |
setFieldsXPath(String fieldsXPath) |
void |
setTypeFactory(GraphQLTypeFactory typeFactory) |
protected String fieldsXPath
protected GraphQLTypeFactory typeFactory
public void setFieldsXPath(String fieldsXPath)
public void setTypeFactory(GraphQLTypeFactory typeFactory)
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)
GraphQLFieldFactory
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 © 2020 CrafterCMS. All rights reserved.