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

How to Execute Einstein Prompt Templates Using Apex (Calling Salesforce Prompt Templates Programmatically with Apex)

 Hi, Here, we’ll explore how to execute a Prompt Template using Apex. To understand this better, let’s take a sample Flex Prompt Template ca...