Class 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 Detail

      • ExpansionFieldsExtension

        public ExpansionFieldsExtension()
    • Method Detail

      • 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