Skip to content

Commit c43198d

Browse files
author
Robert Mosolgo
authored
Merge pull request #1247 from olleolleolle/patch-1
[docs] Abstract Types - note about resolve_type
2 parents 316c5ae + 6142f01 commit c43198d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/types/abstract_types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636

3737
## Type-Level Resolution Hooks
3838

39-
Instead of a single, top-level `resolve_type` function, you can provide type-level functions:
39+
In addition to a single, top-level `resolve_type` function, you can provide type-level functions:
4040

4141
```ruby
4242
MyUnion = GraphQL::UnionType.define do
@@ -52,7 +52,7 @@ MyInterface = GraphQL::InterfaceType.define do
5252
end
5353
```
5454

55-
These functions take priority over the schema-level function.
55+
Keep the schema-level `resolve_type` function: these type-level functions take priority over the schema-level function.
5656

5757
## Orphan Types
5858

0 commit comments

Comments
 (0)