Hi, I have a question about Postman GraphQL mutations and using env variables in that mutation
Below is a part sample of mutation we use to delete an event, I have taken out most of the fields as they are not relevant for the question.
The way we use Postman for GraphQL is make it an HTTP request and select GraphQL as the body type
The way one of our developers set it up is to use the format below were we use the Query window in Postman and add all the content there as opposed to parameterizing the mutation and using the variables window. I believe this is through the data model at the API that requires it to be like this.
We have a field called eventTypeId that I would like to pass into the mutation, however Postman through as error: Int cannot represent non-integer value: “{{animalKey}}”
How can I use an env variable as an Int in this instance?
Thanks in advance
mutation {
deleteEvent(
inputModel: { clientId: "{{clientId}}",
inputList: [{
eventTypeId: "{{eventTypeId}}",
eventDate: "2024-03-10"
eventName: "{{Longjump}}"
}]}){
result
}
}