How to send graphql query by postman?

前端 未结 14 759
情歌与酒
情歌与酒 2020-11-29 16:19

I use

POST type
URL http://######/graphql
Body: 
query: \"query: \"{\'noteTypes\':  {\'name\', \'label\', \'labelColor\', \'groupName\', \'groupLabel\', \'i         


        
相关标签:
14条回答
  • 2020-11-29 17:05

    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.

    0 讨论(0)
  • 2020-11-29 17:05

    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
    
    0 讨论(0)
提交回复
热议问题