Saturday, 13 March 2021

HTTP request body for sample Mutation (GraphQL)

 Hi ,

Let's have small sample request body for a mutation.

Mutation:

mutation {

  changeorderstatus(orderId:"8010I0000052b6EQAQ",orderStatus:"Activated"){

    succeeded

  }

}

HTTP  request body:

{"query":"mutation{changeorderstatus(orderId:\\"8010I0000052b6EQAQ\\",'+
    +'orderStatus:\\"Activated\\"){succeeded}}"}



Reference:

No comments:

Post a Comment

Mastering Agentforce: The Power of Agent Script

Hi, In the rapidly evolving world of AI, the challenge for developers has always been balancing the creative reasoning of Large Language Mod...