Replies: 1 comment 1 reply
-
|
Please upgrade dependencies, including the Gradle DGS Codegen plugin. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Setup
I have a federated GraphQL schema that looks something like this:
Based on the federated testing, I'm setting up my query like so (I'm using the generated client):
I then create and execute a request as follows:
Tooling
I'm going to upgrade the DGS dependencies and see if that helps.
Problems
Extracting the Parent class
This line throws an error because of the returned
__typenameattribute.Is there a way to ignore the attribute or have I misconfigured something (potentially the something in the codegen)?
Passing in inputs to the child
My query should allow me to pass in the
idandsortattributes. When I run it live behind a gateway, this behavior works as expected. However, it's not clear how to pass in the inputs to the fetcher for the child when using the generated client. I tried passing theidin along with the representations in theexecuteAndGetDocumentContext, where the provided variables looked something like this:{ "representations": { "id": "a62d2ac5-525e-4472-90c4-50e8206b883a", "__typename": "Parent" }, "id": "c7a0842c-1422-4023-a84d-4167f2d0d888" }However, I don't see the child id passed in as a value in the
@DgsEntityFetcherargument for the Parent or in theDgsDataFetchingEnvironmentargument for the@DgsData(parentType = "Parent", field = "children").Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions