Class NodeSelectorFieldFactory

java.lang.Object
org.craftercms.engine.graphql.impl.field.NodeSelectorFieldFactory
All Implemented Interfaces:
GraphQLFieldFactory

public class NodeSelectorFieldFactory extends Object implements GraphQLFieldFactory
Implementation of GraphQLFieldFactory that handles node-selector fields
Since:
3.1
Author:
joseross
  • Field Details

    • disableFlatteningXPath

      protected String disableFlatteningXPath
    • datasourceNameXPath

      protected String datasourceNameXPath
    • datasourceItemTypeXPathFormat

      protected String datasourceItemTypeXPathFormat
  • Constructor Details

    • NodeSelectorFieldFactory

      public NodeSelectorFieldFactory()
  • Method Details

    • setDisableFlatteningXPath

      public void setDisableFlatteningXPath(String disableFlatteningXPath)
    • setDatasourceNameXPath

      public void setDatasourceNameXPath(String datasourceNameXPath)
    • setDatasourceItemTypeXPathFormat

      public void setDatasourceItemTypeXPathFormat(String datasourceItemTypeXPathFormat)
    • createField

      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)
      Description copied from interface: GraphQLFieldFactory
      Adds all the required objects for a content-type field to a GraphQLObjectType
      Specified by:
      createField in interface GraphQLFieldFactory
      Parameters:
      contentTypeDefinition - the XML document with the content type definition
      contentTypeField - the XML node with the content-type field
      contentTypeFieldId - the content-type field ID
      parentGraphQLTypeName - the field's parent GraphQL type name
      parentGraphQLType - the field's parent GraphQLObjectType
      graphQLFieldName - the field's GraphQL-friendly name
      graphQLField - the field's GraphQLFieldDefinition