Replies: 1 comment
-
Hello, You haven't given information about your key type which hard to guess why you're not getting results. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Steps to reproduce
Class::query()->whereRaw(['_id' => 'some-value'])
orClass::query()->whereRaw(['_id' => ['$eq' => 'some-value']])
Expected behaviour
The query should return exactly the same results as
Class:query()->where('_id', 'some-value')
Actual behaviour
No result is returned
In my situation I have some subscriptions and some logic that defines general rules for when a customer can see a certain subscription type. However I also need to implement an override (basically customer service wants to specify that user X can see subscription type Y even though this doesn't follow the standard rules). To do this I want to write a query like:
However the
_id
part is never matched, even when using the basic querywhereRaw(['_id' => 'some-value'])
orwhereRaw(['_id' => ['$eq' => 'some-value']])
.Beta Was this translation helpful? Give feedback.
All reactions