How to send graphql query by postman?

前端 未结 14 818
情歌与酒
情歌与酒 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 16:58

    You don't need INSOMNIA in case the GraphQL server responds to Content-type: application/graphql or postman.setEnvironmentVariable,

    Just do it:

    In Headers tab: Content-Type: application/graphql

    In Body tab, "raw" selected, put your query

提交回复
热议问题