Decodes a Query key string into a criterion.
Parses a Model key string into its structural Criterion components, distinguishing projection keys from constraint keys based on the presence of an Operator prefix.
The query key string to decode
The parsed criterion
TypeGuardError If key is not a string
key
If key is malformed or unparseable
decodeCriterion(">=year:releaseDate");// → { target: ">=", pipe: ["year"], path: ["releaseDate"] } Copy
decodeCriterion(">=year:releaseDate");// → { target: ">=", pipe: ["year"], path: ["releaseDate"] }
encodeCriterion
Decodes a Query key string into a criterion.
Parses a Model key string into its structural Criterion components, distinguishing projection keys from constraint keys based on the presence of an Operator prefix.