-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: replication-graphql, Allow specifying the data path #2606
Comments
Agreed. We're using postgraphile which kind of wants to return the nodes under the 'nodes' property on the response). To get around it for now we updated src/plugins/replication-graphql/index.ts to match our specific use case in runPull, adding in
but I agree that this would be nice as a configuration option! |
Yes you are right. PR is welcomed. Another solution would be to give the whole |
I am closing this since there is no progress. |
…ion pull object to specify where to fetch result documents from
…ion pull object to specify where to fetch result documents from
#2606: Allow 'dataPath' to be specified on the GraphQL replication pull object to specify where to fetch result documents from
The current code assumes that the data for graphql replication is always the first child of the response. It would be nice if this was actually configurable so that us as developers could specify a different root; in case that the actual data is 2 levels (or 3 or whatever) deep in the response.
Not an issue; just a would-be-nice-to-have 🙂
The text was updated successfully, but these errors were encountered: