You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/authorization/visibility.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,3 +93,17 @@ end
93
93
```
94
94
95
95
For this to work, the base argument class must be {% internal_link "configured with other GraphQL types", "/type_definitions/extensions.html#customizing-arguments" %}.
96
+
97
+
## Opting Out
98
+
99
+
By default, GraphQL-Ruby always runs visibility checks. You can opt out of this by adding to your schema class:
100
+
101
+
```ruby
102
+
classMySchema < GraphQL::Schema
103
+
# ...
104
+
# Opt out of GraphQL-Ruby's visibility feature:
105
+
use GraphQL::Schema::AlwaysVisible
106
+
end
107
+
```
108
+
109
+
For big schemas, this can be a worthwhile speed-up.
0 commit comments