-
Notifications
You must be signed in to change notification settings - Fork 35
Field Filtering Is Done After Object Is Returned #34
Description
First, thank you for this project. It works better for large GraphQL projects than SOFA.
When I initially read the docs, I assumed that passing in values to fields would adjust the GraphQL query itself, and not request the data from the server in the first place.
However, after trying it out and reviewing the code, it looks like GraphQL2Rest filters fields after the data is returned.
We have some objects with a very large amount of field options (100+), but only a few are needed at any given time, so this is causing our server to load a lot of unneeded/unwanted data.
-
Is there a way to adjust the GraphQL query itself to only request the fields that are in the fields param?
-
If not, would you be able to point me to the right place in the code base to make this modification?