How to send graphql query by postman?

前端 未结 14 769
情歌与酒
情歌与酒 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

    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
    

提交回复
热议问题