lighthouse
lighthouse copied to clipboard
Pass the path array to the `key` method of `CacheKeyAndTags` class
- [ ] Added or updated tests
- [ ] Documented user facing changes
- [x] Updated CHANGELOG.md
Changes
Pass the resolveInfo->path array to the key method of CacheKeyAndTags class.
Breaking changes
interface signautre change.
This is a breaking change because we are changing the signature of the interface.
@spawnia Would you mind if also changing the signature of the parentTag and fieldTag method? Add resolveInfo and remove parentName and fieldName.
Yeah, that keeps it consistent.
@spawnia Is there any timetable for version 6 release?
@spawnia Is there any timetable for version 6 release?
No, but I reckon it will be a few months. If you need this soon, you can fork or overwrite the involved directives.
Please update this merge request with the latest changes from master. I just made the cut to work towards the upcoming v6.
Missing Changelog. Also, why do you want to make this change at all, what is the use case?
I apply local scopes to fields based on the path. The parent and field name is not enough to differentiate between the cache keys.