docs(reference/QueryCache): correct the 'find' and 'findAll' options to match their filter types#10884
Conversation
…to match their filter types
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR updates the reference documentation for ChangesQueryCache Method Signature Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit d4e651d
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Corrects the options listed for
findandfindAllin the QueryCache reference to match their actual filter types:find(filters: WithRequired<QueryFilters, 'queryKey'>)— bothfiltersand itsqueryKeyare required, sofiltersis no longer marked optional andqueryKeyis documented as a required nested option.findAll(filters: QueryFilters = {})—filtersis optional;queryKeyis just one of its properties (covered by the linked Query Filters), so the misplaced top-levelqueryKeyentry is removed.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
queryCache.findmethod:filtersparameter is now required.queryCache.findAllmethod's options section structure and parameter documentation for clarity.