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
raw_query is fine to pass a query as spec to it, but noting there for fields or other.
Like:
CoolModel.objects.raw_query({age : {'$gt': 13}})
but if we need to have fields or for example having score as $meta field on the result when doing full-text search it won't work at all, since passing fields to pymongofind should be second parameter and can't be combined with the spec.
I know defining extra field on the result would cause failure in returning QuerySet since the model we're running query on it doesn't have that new field that has been defined by $meta, but is it the only reason to not able pass extra parameters to raw_query? because it can be done via defining a proxy model where we can have any $meta field defined on it.
The text was updated successfully, but these errors were encountered:
raw_query
is fine to pass a query asspec
to it, but noting there for fields or other.Like:
but if we need to have fields or for example having
score
as$meta
field on the result when doing full-text search it won't work at all, since passingfields
topymongo
find
should be second parameter and can't be combined with thespec
.I know defining extra field on the result would cause failure in returning
QuerySet
since the model we're running query on it doesn't have that new field that has been defined by$meta
, but is it the only reason to not able pass extra parameters toraw_query
? because it can be done via defining aproxy
model where we can have any $meta field defined on it.The text was updated successfully, but these errors were encountered: