apollographql / apollo-rs

Spec compliant GraphQL Tools in Rust.
Apache License 2.0
576 stars 45 forks source link

Make everything know their own name #727

Closed SimonSapin closed 1 year ago

SimonSapin commented 1 year ago

Fixes https://github.com/apollographql/apollo-rs/issues/708

In a few places (but not consistently) a name field was omitted from some structs used as map values on the basis that it would have been redundant with the map key. This reverts that decision, making it the user’s responsibility when mutating documents to keep names consistent.