Skip to content

QueryFilter helpers: record name and allowed comparators per type #498

Open

Description

@leogdion

Filtering by record name needs ___recordID with a REFERENCE value, which every caller has to know. There's also no table of which comparators CloudKit accepts for each field type, so tools validate filters themselves.

Proposal: QueryFilter.recordName(equals:) / notEquals:, and a public per-FieldType list of allowed comparators. Keep the static-factory style so the KeyPath overloads in #149 can build on it. NEAR is #490.

Found while building brightdigit/Mistico (vendored at Packages/MistKit, branch mistico from v1.0.0-beta.6). Tracked in brightdigit/Mistico#119.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions