Skip to content

Commit

Permalink
Fix weird indending
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooper Filby committed Oct 28, 2019
1 parent 0968e0c commit 5eb6bef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ When you have nested or recursive schema like this:

```graphql
type User {
id: ID!
name: String!
friends: [User!]!
id: ID!
name: String!
friends: [User!]!
}
```

Expand All @@ -46,8 +46,8 @@ Write a custom model that omits the Friends model:

```go
type User struct {
ID int
Name string
ID int
Name string
}
```

Expand Down Expand Up @@ -77,8 +77,8 @@ After doing either of the above and running generate we will need to provide a r

```go
func (r *userResolver) Friends(ctx context.Context, obj *User) ([]*User, error) {
// select * from user where friendid = obj.ID
return friends, nil
// select * from user where friendid = obj.ID
return friends, nil
}
```

Expand Down

0 comments on commit 5eb6bef

Please sign in to comment.