Skip to content

Conversation

@KazaiMazai
Copy link
Owner

@KazaiMazai KazaiMazai commented Nov 20, 2025

Note

Refactors the query system to be context-agnostic with explicit resolve(in:), updates filtering/sorting/nested APIs and macros, adds pagination via limit, and refreshes docs/tests accordingly.

  • Core Query/API Refactor:
    • Introduce ContextQuery redesign; Query no longer stores context and requires resolve(in:).
    • Replace whenResolved with then; add Query.id(context) accessor.
    • Context.queryAll() and closure-based QueryList construction; remove implicit query(in:) patterns.
  • Filtering/Sorting/Nested Queries:
    • Update filter, string search, metadata filters, and sorting to operate with context at resolve-time; adjust index lookups accordingly.
    • Add pagination via QueryList.limit(_:offset:).
    • Update related/nested .with/.fragment/.id chains to new API.
  • Schema & Macros:
    • Change EntityModelProtocol signatures: queryAll(with:), nestedQueryModifier(_:, nested:) (no context param).
    • Provide schemaQuery() helpers without context.
  • Indexes & Relations:
    • Update CollisionResolver, Index/Unique/FullTextIndex, and Link.findChildrenOf to use new query API and resolve(in:).
  • Docs & Tests:
    • README updated to new usage and adds "Limiting and Paginating Results" section.
    • Tests migrated to explicit resolve(in:) and new query helpers.

Written by Cursor Bugbot for commit 4bc2769. This will update automatically on new commits. Configure here.

@KazaiMazai KazaiMazai self-assigned this Nov 20, 2025
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 18

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@KazaiMazai KazaiMazai merged commit 34f7325 into main Nov 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants