Skip to content

Commit f4ba542

Browse files
authored
Clarify inheritance docs
1 parent abd440a commit f4ba542

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/definitions/type-inheritance.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ CharacterWizard:
127127
magicPoints: {type: Int!}
128128
```
129129
130+
Make sure to register `CharacterWarrior` and `CharacterWizard` as types in your `overblog_graphql` configuration, otherwise it cannot be found:
131+
```yaml
132+
overblog_graphql:
133+
definitions:
134+
schema:
135+
query: Query
136+
types: [CharacterWarrior, CharacterWizard]
137+
```
138+
130139
**Notes:**
131140
* Inheritance works only with the generated types
132141
* Type can be inherited even from any type (from different files)
@@ -195,4 +204,4 @@ Product:
195204
# Not implementing would raise an graphql error
196205
id:
197206
type: 'ID!'
198-
```
207+
```

0 commit comments

Comments
 (0)