I have a query that was generated by FaunaDB after I uploaded the project schema:
query FindRankingByID {
findRankingByID(id: 274890605431095813) {
rankingname
rankingdesc
rankingowneraddr
_id
}
}
with ‘Basic’ authentication this query correctly retrieves the data.
When I use a token ('Bearer ') in the Playground http header I get:
{
"data": {
"findRankingByID": null
}
}
If there was a permissions issue I should get a permissions error. However, the only change has been the token in the http header.
If permissions are the issue then I considered:
Previously I assigned privileges to functions in the ‘logged-in’ role which has membership with the relevant collections (and therefore works with the tokens).
However, those functions have resolvers that are defined in the schema and are listed in the functions dropdown for the ‘logged-in’ role.
There is no findRankingByID function listed in ‘logged-in’.
If this is not a permissions issue then why is the data returned now null and how should I fix so this query will work with a token? thanks …