Im trying to generate a token with read only permissions through the graphql endpoint.
First attempt as per the doc here: Keys | Fauna Documentation I tried to create a new Key using the server-readonly role but it’s missing when I try to select it in the dropdown:
My second attempt has been creating a new Role with this privileges:
After issuing the key and trying to perform a query I’m getting this response:
{
"errors": [
{
"message": "Insufficient privileges to perform the action.",
"extensions": {
"code": "permission denied"
}
}
]
}
I’ve tried an admin key to rule out other problems and it works fine.
What am I missing? What’s the recommended way to create an auth key that has read only access to all the db through graphql?