Class EnrichmentExtension
java.lang.Object
com.atlassian.confluence.plugins.graphql.extensions.EnrichmentExtension
- All Implemented Interfaces:
com.atlassian.graphql.spi.GraphQLExtensions,com.atlassian.graphql.spi.GraphQLTypeContributor
public class EnrichmentExtension
extends Object
implements com.atlassian.graphql.spi.GraphQLExtensions
Extends the graph-ql type system with enrichment functionality from
ApiRestEntityFactory.- Since:
- 6.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeFields(String typeName, Type type, List<graphql.schema.GraphQLFieldDefinition> fields, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) getValueTransformer(Type type, AnnotatedElement element) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.graphql.spi.GraphQLExtensions
getAdditionalTypeBuilders, getDataFetcher, getDataFetcherThunk, getExpansionRootPaths, getInstrumentation, isExpansionField
-
Constructor Details
-
EnrichmentExtension
-
-
Method Details
-
contributeTypeName
public String contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) - Specified by:
contributeTypeNamein interfacecom.atlassian.graphql.spi.GraphQLExtensions- Specified by:
contributeTypeNamein interfacecom.atlassian.graphql.spi.GraphQLTypeContributor
-
contributeFields
public void contributeFields(String typeName, Type type, List<graphql.schema.GraphQLFieldDefinition> fields, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) - Specified by:
contributeFieldsin interfacecom.atlassian.graphql.spi.GraphQLExtensions- Specified by:
contributeFieldsin interfacecom.atlassian.graphql.spi.GraphQLTypeContributor
-
getValueTransformer
- Specified by:
getValueTransformerin interfacecom.atlassian.graphql.spi.GraphQLExtensions
-