Open kroupacz opened 5 days ago
Latest commit: 896bea9fd758c5619cb622c95bdbe4bd599a532e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@EmrysMyrddin or @ardatan 🙏
Description
If someone send GraphQL query without
operationName
in request body, we should try to get it from theOperationDefinitionNode
after the query parsing is finished.I added this logic to the
onParse
(onParseEnd
) handler, but I'm not sure if all the logic of theonEnveloped
handler should be moved to theonParseEnd
handler?e.g. the
operationName
is missing if someone send request with bodyand the result in Apollo Studio metrics is: ❌
if someone send request with body
the result in Apollo Studio metrics is: ✅