Skip to content

Commit

Permalink
SQUASH
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwillette committed Dec 8, 2018
1 parent ab169fb commit 473e22b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pet_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type Tag struct {
}

// RESOLVERS ===========================================================================

// ID resolves the ID for Tag
func (t *Tag) ID(ctx context.Context) *graphql.ID {
return gqlIDP(t.Model.ID)
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"net/http"

"github.com/graph-gophers/graphql-go"
graphql "github.com/graph-gophers/graphql-go"

"github.com/graph-gophers/graphql-go/relay"
)
Expand Down
1 change: 1 addition & 0 deletions users.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type User struct {
}

// RESOLVER METHODS ====================================================================

// ID resolves the user ID
func (u *User) ID(ctx context.Context) *graphql.ID {
return gqlIDP(u.Model.ID)
Expand Down

0 comments on commit 473e22b

Please sign in to comment.