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 Details

  • Constructor Details

    • ExampleGraphQLContextContributor

      public ExampleGraphQLContextContributor()
  • Method Details

    • contribute

      public void contribute(@NotNull graphql.GraphQLContext.Builder builder, @Nullable Map<String,?> extensions, @Nullable com.netflix.graphql.dgs.internal.DgsRequestData dgsRequestData)
      Specified by:
      contribute in interface com.netflix.graphql.dgs.context.GraphQLContextContributor