Skip to content

Commit

Permalink
tidy up json writing
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Feb 11, 2018
1 parent 0dcf7f6 commit 3900a41
Show file tree
Hide file tree
Showing 14 changed files with 1,408 additions and 2,446 deletions.
996 changes: 344 additions & 652 deletions example/dataloader/generated.go

Large diffs are not rendered by default.

1,426 changes: 494 additions & 932 deletions example/starwars/generated.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions example/starwars/starwars.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func (r *Resolver) FriendsConnection_friends(ctx context.Context, it *FriendsCon
}

func (r *Resolver) Mutation_createReview(ctx context.Context, episode string, review Review) (*Review, error) {
review.Time = time.Now()
time.Sleep(1 * time.Second)
r.reviews[episode] = append(r.reviews[episode], review)
return &review, nil
}
Expand Down
Loading

0 comments on commit 3900a41

Please sign in to comment.