I use
POST type
URL http://######/graphql
Body:
query: \"query: \"{\'noteTypes\': {\'name\', \'label\', \'labelColor\', \'groupName\', \'groupLabel\', \'i
Adding this for anyone searching on the topic ... you can utilize and test GraphQL calls far better and more easily with Insomnia:
https://insomnia.rest
It's been fantastic for GraphQL development.
I faced the same problem when I try to used graphQl
query using POSTMAN
,
In POSTMAN send data from the raw
tab with json
type.
Query Command:
{"query":"{user(id:902){id,username,DOB}}"}
Mutations Command:
{ "query": "mutation {createMutations(reviewer:36, comments:\"hello\",data_id: 1659, approved: true ){id}}" }
#commnent: String Type
#data_id:Int Type
#approved:Boolean Type