Package net.morimekta.providence.graphql
Interface GQLProcessorProvider<Context extends GQLContext>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface GQLProcessorProvider<Context extends GQLContext>A class representing the mutation needed for a single message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description net.morimekta.providence.PProcessorprocessorFor(Context context, GQLMethodCall methodCall)Mutate the message according to the field selection.
-
-
-
Method Detail
-
processorFor
net.morimekta.providence.PProcessor processorFor(Context context, GQLMethodCall methodCall)
Mutate the message according to the field selection. The field selection will represent a single field in the base message, and it should return the mutated message with the new field set.- Parameters:
context- The GQL context for the request. Note that the context is per call for queries, and shared for mutations.methodCall- The GQL method to be called.- Returns:
- The processor
-
-