8000 add another type in option types · pablohildo/sdkgen.github.io@57df9e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57df9e9

Browse files
author
Leonardo Farias Galvão
committed
add another type in option types
1 parent 3424bc9 commit 57df9e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

defining-your-schema.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@ type Comment {
141141
}
142142
```
143143

144+
```
145+
type Direction enum {
146+
Up
147+
Down
148+
Left
149+
Right
150+
}
151+
152+
type Car {
153+
brand: string
154+
direction: Direction?
155+
}
156+
```
157+
144158
## Functions
145159

146160
To define what your clients will get and put into the server, you should describe the functions, their arguments and return types:

0 commit comments

Comments
 (0)
0