Open glasser opened 1 year ago
Ran into this as well! We were using introspection to grab all possible enum values for a form field select dropdown. As a workaround, we exposed a top level Query entry point to fetch the enum values, but I think it would be more desirable to use introspection for fetching that data as opposed to having to maintain a query resolver over time.
Just to acknowledge, this is indeed a known limitation right now due to underlying constraints of how we do query-planning right now, but we've deemed it as acceptable in the near term since it affects so few cases in practice. We will resolve this in the future, but it's probably more than 6 months out as of this writing.
As another data point this affects us too.
We are impacted by this as well
Describe the bug There is no such thing as an "introspection query" in GraphQL; the introspection fields such as
Query.__schema
andQuery.__type
are just fields that can be in any operation. One theoretically can combine introspection and non-introspection root fields in the same operation. Router appears to not support these operations.I don't think that these are particularly useful, so this is more of a "lack of perfect fidelity to the spec" than a major missing use case.
To Reproduce Steps to reproduce the behavior:
cargo run -- -s examples/graphql/supergraph.graphql --dev
Expected behavior The introspection field
__schema
that is non-null in the first operation should be non-null in the second operation.