Encodes a criterion as a Query key string.
Serializes a parsed Criterion back into its compact string representation suitable for use as a Model key.
The criterion to encode
The encoded key string
TypeGuardError If criterion is not a valid Criterion
criterion
encodeCriterion({ target: ">=", pipe: ["year"], path: ["releaseDate"] });// → '>=year:releaseDate' Copy
encodeCriterion({ target: ">=", pipe: ["year"], path: ["releaseDate"] });// → '>=year:releaseDate'
decodeCriterion
Encodes a criterion as a Query key string.
Serializes a parsed Criterion back into its compact string representation suitable for use as a Model key.