Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

[BUG] Cannot use custom cache key on root-level field #67

Open
thebadmonkeydev opened this issue Oct 29, 2019 · 2 comments
Open

[BUG] Cannot use custom cache key on root-level field #67

thebadmonkeydev opened this issue Oct 29, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@thebadmonkeydev
Copy link
Collaborator

thebadmonkeydev commented Oct 29, 2019

Describe the bug
A custom cache key cannot be used on a root-level field because it is skipped when there is no parent object.

gem version:
>= 0.6

graphql-ruby version:
Any

Expected behavior
The root-level field should be cached according to the custom key provided in the field definition.

@thebadmonkeydev thebadmonkeydev added the bug Something isn't working label Oct 29, 2019
@thebadmonkeydev thebadmonkeydev self-assigned this Oct 29, 2019
@thebadmonkeydev
Copy link
Collaborator Author

cc @bricesanchez

@drewlustro
Copy link

Hi @thebadmonkeydev,

What does "root-level" field mean?

We might be experiencing this issue in our project too, but are not sure. We have some cache: ... fields defined on an interface type and wonder if that's the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants