Skip to content

Commit

Permalink
getting started: make running server own section
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronArinder committed Feb 7, 2021
1 parent 997da42 commit 31d339a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ func (r *queryResolver) Todos(ctx context.Context) ([]*model.Todo, error) {
}
```

### Run the server

We now have a working server, to start it:
```bash
go run server.go
```

then open http://localhost:8080 in a browser. here are some queries to try:
Open http://localhost:8080 in a browser. Here are some queries to try:
```graphql
mutation createTodo {
createTodo(input:{text:"todo", userId:"1"}) {
Expand Down

0 comments on commit 31d339a

Please sign in to comment.