Graphene Django “Must provide query string”

后端 未结 7 656
醉酒成梦
醉酒成梦 2021-01-12 06:52

I have setup a Graphene server using Django. When I run my queries through GraphiQL (the web client), everything works fine. However, when I run from anywhere else, I get th

7条回答
  •  被撕碎了的回忆
    2021-01-12 07:34

    I faced the same problem when I try to used graphQl query using POSTMAN, In POSTMAN send data in row with json type. You have to make json data grapQl query and mutations data like this

    Query Command:

    {"query":"{user(id:902){id,username,DOB}}"}
    

    Mutations Command:

    { "query": "mutation {createMutations(reviewer:36, comments:\"hello\",loan: 1659, approved: true ){id}}" }
    
           #commnent: String Type
           #data_id:Int Type
           #approved:Boolean Type
    

提交回复
热议问题