apollo-federation-ruby
apollo-federation-ruby copied to clipboard
fix: Support inline variables for _entities
Summary
- Updates Any.coerce_input to handle the case when
value
is an instance ofGraphQL::Language::Nodes::InputObject
- Newer releases of GraphQL automatically convert inline query variables to input objects
While it's highly unlikely that Apollo Gateway will send queries with inline variables, when unit testing & manually sending _entitiy
queries directly to federation services, we often will use inline variables.
Hey @rylanc, any chance you could give this a look?
Would like to +1 merging this fix.
Sorry for taking so long to get to this PR.
This makes sense, we should be supporting inlined variables. Let me see if I can revive this PR.
I'm gonna close this one team, i'm so far removed from this stuff these days. Hope you found a path forward here