Skip to content

Commit

Permalink
feat: add university query which resturns only string
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Sep 16, 2024
1 parent 730598f commit 183df25
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
1 change: 1 addition & 0 deletions graph/schema/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Mutation {
}

type Query {
university: String!
studentsByName(name: String!): [Student!]!
studentByID(id: String!): Student
}
63 changes: 63 additions & 0 deletions internal/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions internal/graph/resolver/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 183df25

Please sign in to comment.