- I created a very simple data model with the following fields
- then created API user with token
- then calling graphql query using postman
getting graphql validation error
not sure, what am I doing wrong?
#Directus Cloud GraphQL API not working
1 messages · Page 1 of 1 (latest)
It looks to me like you're not authenticated in that request, meaning that graphql defaults to the permissions of the public user
How are you sending the token?
@warm quartz yes i am using following
curl --location --request POST 'https://p2meuuea.directus.app/graphql'
--header 'Authorization: Bearer CVd0GmUMpJfeB5jGvhB3b0oGGFA-juz3'
--header 'Content-Type: application/json'
--data-raw '{"query":"query {\n blog {\n id\n title\n }\n}","variables":{}}'
@mental bane does this work with your token
https://p2meuuea.directus.app/items/blog?access_token= with your created token there?
@warm quartz @molten valve i just assigned role to my API user (which was missing). now i am getting data back , let me try mutation quickly to see if that works