Skip to content

Commit

Permalink
docs(enum): add @Resolver decorator in snippet
Browse files Browse the repository at this point in the history
* docs(enum): add missing @resolver decorator

* docs(enum): fix name conflict
  • Loading branch information
tabakd authored and MichalLytek committed Oct 19, 2019
1 parent e32a34f commit 7298199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ Without this annotation, the generated GQL type would be `String` or `Float` (de
With all that in place, we can use our enum directly in our code 😉

```typescript
class Resolver {
@Resolver()
class SpriteResolver {
private sprite = getMarioSprite();

@Mutation()
Expand Down

0 comments on commit 7298199

Please sign in to comment.