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
Describe the bug
If a query is authenticated, it is not possible to provide a filter using _and or _or. It fails with an error like:
`Could not determine field metadata for filter key: '_and on AccordionItem entity'","stack":"Error: Could not determine field metadata for filter key: '_and on AccordionItem entity'\n at recurseThroughArg (.../@exogee/graphweaver-auth/lib/decorators/hooks/acl.js:169:15)
The auth module is trying to traverse the filter, but doesn't know what to do with _and and _or operations.
Describe the bug
If a query is authenticated, it is not possible to provide a filter using
_and
or_or
. It fails with an error like:`Could not determine field metadata for filter key: '_and on AccordionItem entity'","stack":"Error: Could not determine field metadata for filter key: '_and on AccordionItem entity'\n at recurseThroughArg (.../@exogee/graphweaver-auth/lib/decorators/hooks/acl.js:169:15)
The auth module is trying to traverse the filter, but doesn't know what to do with _and and _or operations.
graphweaver/src/packages/auth/src/decorators/hooks/acl.ts
Line 248 in b61b1f3
This is where the metadata is being processed, I think this piece is fine
graphweaver/src/packages/core/src/metadata.ts
Line 636 in b61b1f3
To Reproduce
Steps to reproduce the behavior:
An example query is
Expected behavior
The query should be allowed to proceed by auth
Actual behavior
What actually happened.
Screenshots or Screencasts
If applicable, add screenshots or screencasts to help explain the issue.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: