Skip to content

Commit 8274825

Browse files
Update content/graphql/interfaces.md
1 parent 1b3bd0c commit 8274825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export abstract class Book {
6868

6969
#### Interface resolvers
7070

71-
So far, using interfaces, you could only share fields with your objects. But what if you want to share methods using your interface? That's when you use interface resolvers.
71+
So far, using interfaces, you could only share field definitions with your objects. If you also want to share the actual field resolvers implementation, you can create a dedicated interface resolver, as follows:
7272
To do so, create a resolver and point its type to the interface, then define your methods using the `@ResolveField` decorator.
7373

7474
```typescript

0 commit comments

Comments
 (0)