Skip to content

Commit 40eae76

Browse files
committed
This provides and ability to disable Introspection - deprecate NoIntrospectionGraphqlFieldVisibility
1 parent 7ab747e commit 40eae76

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/graphql/schema/visibility/NoIntrospectionGraphqlFieldVisibility.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
* This field visibility will prevent Introspection queries from being performed. Technically this puts your
1313
* system in contravention of <a href="https://spec.graphql.org/October2021/#sec-Introspection">the specification</a>
1414
* but some production systems want this lock down in place.
15+
*
16+
* @deprecated This is no longer the best way to prevent Introspection - {@link graphql.introspection.Introspection#enabledJvmWide(boolean)}
17+
* can be used instead
1518
*/
1619
@PublicApi
20+
@Deprecated(since = "2024-03-16")
1721
public class NoIntrospectionGraphqlFieldVisibility implements GraphqlFieldVisibility {
1822

23+
@Deprecated(since = "2024-03-16")
1924
public static NoIntrospectionGraphqlFieldVisibility NO_INTROSPECTION_FIELD_VISIBILITY = new NoIntrospectionGraphqlFieldVisibility();
2025

2126

0 commit comments

Comments
 (0)