Skip to content

Commit 32e9b43

Browse files
graphql: Return isDeprecated: false for __InputValue in introspection (#6475)
1 parent 6a388cb commit 32e9b43

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

graphql/src/introspection/resolver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ fn input_value(
300300
.map_or(r::Value::Null, |value| {
301301
r::Value::String(format!("{}", value))
302302
}),
303+
isDeprecated: false,
304+
deprecationReason: r::Value::Null,
303305
}
304306
}
305307

store/test-store/tests/graphql/introspection.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,8 @@ async fn successfully_runs_introspection_query_against_complex_schema() {
883883
description
884884
type { ...TypeRef }
885885
defaultValue
886+
isDeprecated
887+
deprecationReason
886888
}
887889
888890
fragment TypeRef on __Type {

0 commit comments

Comments
 (0)