ITADN

Clients that use __typename in queries with introspection disabled results in 403

#871Opensherzberg 创建于 2026-03-23
S
sherzbergcommented
We are working toward migrating from the apollo rust router with hive extension to this hive router and are seeing a difference in handling of introspection. We have introspection disabled in both router configs, but the hive-router returns 403 errors with a message of `Introspection queries are disabled` when making any query that uses `__typename`. The apollo router does not behave this way. The docs here say `__typename` is used by the apollo client (I realize that is apollo docs, but I assume quite a few people are using that client): https://www.apollographql.com/docs/apollo-server/schema/schema#the-__typename-field Is this a known difference in handling of this feature? I'm not a graphql expert so not sure what the direction of this should be, just looking for some guidance.
1 条评论