Filter list using [UseOffsetPaging] with MongoDb getting error is not supported for mongo paging. #5100
Unanswered
raisaspagnol
asked this question in
Q&A
Replies: 3 comments
-
How does you startup look like? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi My startup is
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@PascalSenn Any idea? |
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
-
Hello guys
I'm facing issues using [UseOffsetPaging] and IExecutable with MongoDB. I have the following situation:
I want to create queries by company where it is not necessary for the user to inform the field in the where, ex:
Not
Yes
Behind it would be a middleware to filter and return according to the user's company.
This only works if it returns an
IExecutable
, but when returning anIExecutable
I am not able to filter and then return the list because I get the error:I'm trying two alternatives, the first would be to dynamically add the companyId field to where
where: {companyId: {eq: "624e2962f697e02dff36f590"}}
, I don't know if that's possible.and the second a middleware that filters the items according to the user's company but with that I get the error "...is not supported for mongo paging".
Could someone shed some light on how to create a custom filter (UseByCompany) or how I can filter the items and then return the list without resulting in the error "...is not supported for mongo paging".
Thanks guys
Beta Was this translation helpful? Give feedback.
All reactions