Closed chinwobble closed 4 years ago
It depends on what request the client sends. Try Samples.Server example and press F12 to open developer console, then network tab, select your request and see request payload:
{"operationName":"aaa","variables":{},"query":"query aaa {\n messages {\n sentAt\n }\n}\n"}
You will see operation name. Original request:
query aaa {
messages
{
sentAt
}
}
operationName
arg equals aaa
.
Thanks for answering quickly. I don't think there's an issue with the library. The problem is postman doesn't extract the operationName and send it separately.
When using apollo client it does it automatically so for my purposes its working fine.
We would like the operation name for logging purposes.
When I submit a query like this:
I don't get any operation name.
I am using the following packages.