What does the “operation name” reference?

In GraphiQL you can choose from a list of queries specified by the operation name. Here’s some screenshots to help make this make sense.

enter image description here

When you have two mutations / queries side-by-side and they don’t have an operation name you can’t run them.

When they have operation names they can be listed when you click the play / run button.

enter image description here

This is the biggest case for having an operation name that I’ve seen so far.

But it’s not necessary because when you just have run query / mutation that’s what’s gonna run.

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)