diff --git a/pet_tags.go b/pet_tags.go index acc2bef..716ff67 100644 --- a/pet_tags.go +++ b/pet_tags.go @@ -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) diff --git a/server.go b/server.go index 1754dd4..f19418b 100644 --- a/server.go +++ b/server.go @@ -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" ) diff --git a/users.go b/users.go index fce54a5..482e7b9 100644 --- a/users.go +++ b/users.go @@ -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)