Package org.craftercms.engine.graphql
Interface GraphQLFieldFactory
-
- All Known Implementing Classes:
CheckboxFieldFactory
,CheckboxGroupFieldFactory
,InputFieldFactory
,NodeSelectorFieldFactory
,RepeatGroupFieldFactory
,RTEFieldFactory
,TimeFieldFactory
public interface GraphQLFieldFactory
Creates all the required objects to represent a content-type field in aGraphQLObjectType
- Since:
- 3.1
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 aGraphQLObjectType
-
-
-
Method Detail
-
createField
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 aGraphQLObjectType
- Parameters:
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 parentGraphQLObjectType
graphQLFieldName
- the field's GraphQL-friendly namegraphQLField
- the field'sGraphQLFieldDefinition
-
-