Skip to content

Commit 85acecb

Browse files
Update enums.md
1 parent 37dcfbb commit 85acecb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

content/graphql/enums.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ Sometimes a backend forces a different value for an enum internally than in the
6969
```typescript
7070
@Resolver('AllowedColor')
7171
export class AllowedColorResolver {
72-
@ResolveField('RED')
73-
getRedColor() {
74-
return '#f00';
75-
}
72+
[AllowedColor.RED]: '#f00';
7673
}
7774
```
7875

0 commit comments

Comments
 (0)