Skip to content

Field Filtering Is Done After Object Is Returned #34

@klinskyc

Description

@klinskyc

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.

  1. Is there a way to adjust the GraphQL query itself to only request the fields that are in the fields param?

  2. If not, would you be able to point me to the right place in the code base to make this modification?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions