apollographql / federation-rs

Contains source code for Apollo Federation's Rust<--> JavaScript interop
Other
35 stars 23 forks source link

Send payload id if applicable when an exception is caught #545

Closed o0Ignition0o closed 1 month ago

o0Ignition0o commented 2 months ago

If an exception is caught during planning, we previously didn't send the messageId.

The response could thus not be properly routed back to the proper sender, and would lead to such errors as:

value: TypeError: Error parsing args at position 1: missing field `id`

This changeset adds the messageId if possible.

duckki commented 1 month ago

This seems working. I don't see this error with this PR.