Skip to content

[useResponseCache] Ignore specfic schemaCoordinates for IdFields which are not the root of a subgraph #2247

Open
@Kendalor

Description

@Kendalor

Is your feature request related to a problem? Please describe.

In our schema we have fields named "id" which are not part of a subgraph, just a nested field named "id". This causes the caching-plugin to treat this nested field like a subgraph, which results in the nested field always beeing null.

Describe the solution you'd like

Add a new optionalList of schemaCoordinates to the useResponseCacheParamters, which is used to exclude fields on specific objects in the mapSchema step. Can provide a pull request.

Alternative solution which we tried (and worked) was renaming all "id" fields which are not a root of a subgraph in our schema. Which sadly is not a solution wie can deploy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingstage/0-issue-prerequisitesNeeds more information before we can start working on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions