Hello !
I’ve been trying to use a simple query with a user secret (this query is made simple, I’m actually not using Get/Singleton
to get a Ref
data !
const response = await fauna.query(
q.Get(
q.Singleton(q.Ref(q.Collection('lessons'), '259055206731350528')),
),
{ secret },
);
And end up with {"message":"Insufficient privileges to perform the action."}
.
If I remove the secret & use the server or admin, it is working fine. Is there any privileges I need to give to the user to Get
| Paginate
over Singleton
? Thanks