You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
where field names address.zipcode and balance are plain strings/object keys and not tied to schema. If a user renames/removes any of these fields, the filters would break and user would have to do a static search across the codebase to find potential usages.
Other than filters, there are places where collection/index field names are being referenced:
Potentially we can make all these generics and tie them to the collection class or interface type. We had a solution that was reverted in the past and covered most of the use cases except a couple ones:
It would be great if it can support dot notation for writing nested fields like - address.zipcode
The optional fields in collection/index schema were not getting typed. E.g. - if your collection schema defined id: string and an optional employeeName?: string property, the type checking was only available for id and not employeeName
Otherwise, we were getting type safety and auto completion in IDE with above.
Issue
Today we use collection/index field names to define filter queries as:
where field names
address.zipcodeandbalanceare plain strings/object keys and not tied to schema. If a user renames/removes any of these fields, the filters would break and user would have to do a static search across the codebase to find potential usages.Other than filters, there are places where collection/index field names are being referenced:
What needs to be done?
address.zipcodeid: stringand an optionalemployeeName?: stringproperty, the type checking was only available foridand notemployeeNameOtherwise, we were getting type safety and auto completion in IDE with above.