sjdemartini/graphene-django-permissions

Add support for Relay-based graphene schemas

sjdemartini opened this issue · 0 comments

Right now, this library only works properly for Graphene/GraphQL schemas that do not use Relay nodes (see https://docs.graphene-python.org/projects/django/en/latest/tutorial-relay/), but should work whether the schema/queries use Relay nodes or not.

Although it seemingly will not expose any data that isn't permissible (as we'd hope), it seems Relay-based schemas do not behave properly when filtering non-permitted items in lists, since the list ends up containing items like {'node': None} rather than omitting the item entirely.

See the WIP branch support-relay (diff here) which includes unit-tests, a few of which fail per the above. That should help for investigating a solution to add proper support for Relay.