Class ExpansionFieldsExtension

java.lang.Object
com.atlassian.confluence.plugins.graphql.extensions.ExpansionFieldsExtension
All Implemented Interfaces:
com.atlassian.graphql.spi.GraphQLExtensions, com.atlassian.graphql.spi.GraphQLTypeContributor

public class ExpansionFieldsExtension extends Object implements com.atlassian.graphql.spi.GraphQLExtensions
A graphql extension that makes sure fields of type Reference, List and Map are included in the expand= parameter.
Since:
6.12.0
  • Constructor Details

    • ExpansionFieldsExtension

      public ExpansionFieldsExtension()
  • Method Details

    • isExpansionField

      public boolean isExpansionField(Member accessor)
      Specified by:
      isExpansionField in interface com.atlassian.graphql.spi.GraphQLExtensions
    • getExpansionRootPaths

      public List<String> getExpansionRootPaths(Type type)
      Specified by:
      getExpansionRootPaths in interface com.atlassian.graphql.spi.GraphQLExtensions