There doesn't appear to be a way to override the default equivalency operator (would expect it to fire a custom $eq operator if available).
For example the eqOverride method will execute for {testField: { $eq: 'someValue'}} but will not execute for {testField: 'someValue'}.
Are there any suggestions as to how to handle the second case?
const filter = sift( filterTemp, { operations: { // Works for $eq filters, but not for straight someField: someValue tilers $eq(params, ownerQuery, options) { return createEqualsOperation( (value: any) => eqOverride(value, params), ownerQuery, options, ); } } );
There doesn't appear to be a way to override the default equivalency operator (would expect it to fire a custom $eq operator if available).
For example the eqOverride method will execute for
{testField: { $eq: 'someValue'}}but will not execute for{testField: 'someValue'}.Are there any suggestions as to how to handle the second case?
const filter = sift( filterTemp, { operations: { // Works for $eq filters, but not for straight someField: someValue tilers $eq(params, ownerQuery, options) { return createEqualsOperation( (value: any) => eqOverride(value, params), ownerQuery, options, ); } } );