Class ExampleGraphQLContextContributor
java.lang.Object
com.netflix.graphql.dgs.example.shared.context.ExampleGraphQLContextContributor
- All Implemented Interfaces:
com.netflix.graphql.dgs.context.GraphQLContextContributor
@Component
public class ExampleGraphQLContextContributor
extends Object
implements com.netflix.graphql.dgs.context.GraphQLContextContributor
Example GraphQLContextContributor that works with either webflux or mvc based stacks.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(graphql.GraphQLContext.Builder builder, Map<String, ?> extensions, com.netflix.graphql.dgs.internal.DgsRequestData dgsRequestData)
-
Field Details
-
CONTRIBUTOR_ENABLED_CONTEXT_KEY
- See Also:
-
CONTRIBUTOR_ENABLED_CONTEXT_VALUE
- See Also:
-
CONTEXT_CONTRIBUTOR_HEADER_NAME
- See Also:
-
CONTEXT_CONTRIBUTOR_HEADER_VALUE
- See Also:
-
-
Constructor Details
-
ExampleGraphQLContextContributor
public ExampleGraphQLContextContributor()
-
-
Method Details