Skip to content

Commit

Permalink
Merge pull request #1247 from olleolleolle/patch-1
Browse files Browse the repository at this point in the history
[docs] Abstract Types - note about resolve_type
  • Loading branch information
Robert Mosolgo authored Jan 29, 2018
2 parents 316c5ae + 6142f01 commit c43198d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/types/abstract_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

## Type-Level Resolution Hooks

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

```ruby
MyUnion = GraphQL::UnionType.define do
Expand All @@ -52,7 +52,7 @@ MyInterface = GraphQL::InterfaceType.define do
end
```

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

## Orphan Types

Expand Down

0 comments on commit c43198d

Please sign in to comment.