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/schema/definition.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,3 +193,14 @@ class MySchema < GraphQL::Schema
193
193
use(GraphQL::Tracing::NewRelicTracing)
194
194
end
195
195
```
196
+
197
+
## Extra Types
198
+
199
+
Documentation-only types can be attached to the schema using {{ "Schema.extra_types" | api_doc }}. Types passed to this method will _always_ be available in introspection queries and SDL print-outs.
200
+
201
+
```ruby
202
+
classMySchema < GraphQL::Schema
203
+
# These aren't for queries, but will appear in documentation:
0 commit comments