Closed verenion closed 4 years ago
Forgot to add: Changing record.member_id
to record.object.member_id
seems to fix this issue, but it doesn't seem to match what the documentation claims
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I am using a graphql policy like so:
This works great. If I use the graphql endpoint and request a user:
It works fine, and the output in the console is :
However, when I run the same query in rspec, the guard lambda is seemingly receiving the same object (the structure is the same, not the contents).
However, all my tests fail with:
I am using the latest version of graphql, graphql-guard and pundit. My UserPolicy for reference: