Replies: 1 comment
-
Hi @paulbakker @srinivasankavitha Can you possibly review the feature request and suggest if it's a good one to proceed with? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Similar to interfaces generation for data classes, having interface generation enabled for input types can be useful to extend functionality for input classes as well.
Use-case Walkthrough
Example of a use-case for interface type: https://github.com/krutikavk/sparseupdate-poc/tree/dynamic-proxy-no-intermediate
This design employs use of dynamic proxy to extend the functionality of any generic input class to identify presence of input arguments from client from a single object.
Consider the below schema and a sample class design:
Design:
DGS Mutation can now use extended functionality
proxyObject.isFieldSet(String fieldName)
to identify if an input field is provided by the client. Instead of deducing the same information from 2 objects i.e. DGS data fetching environment and input argument, single proxy object holds persistent state for the mutation.IUpdateShowInput
for input typeHappy to discuss further.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions