Authentication for querying a specific list of ID's

I have a list of ID’s of Dgraph resources that I wish to query.
How can I authenticate them using an authorization token header to allow me to query just those specific ID’s and nothing else.
I’m calling Dgraph directly from the frontend through Graphql.


1 Like

You could put them in an array in the JWT is that an option? That array could then be passed to an auth rule that does queryMyType(filter: { id: $MY_IDS })

Any schema or code you have tried so far will help get better answers.