Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I call mutation in GraphQL playground?

My schema looks like this within the yellow coloured square in the image below
enter image description here

And the code on the left side doesn’t really work.
How can I call this in GraphQL playground?

Appreciate your answer in advance!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

  1. you can do input QUERY VARIABLES like
{ 
 "input": {
    "scheduleId: "123",
    "reason": "123"
 }
}
  1. also you can input variables to directly
mutation {
 cancelScheduleByAdmin(input: {
    "scheduleId": "123",
    "reason": "123"
 }) {
   ...
 }
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading