Skip to content

Commit

Permalink
feat: adding uuid validation for account
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzorn93 committed Jan 3, 2025
1 parent 05515cd commit ee2fb52
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 48 deletions.

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

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

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

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

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

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
The Account type represents a user account in the system.
"""
type Account {
"""
The unique identifier for the account
Expand All @@ -18,5 +21,8 @@ type Account {
}

extend type Viewer {
account(id: ID!): Account @goField(forceResolver: true)
"""
Get an account by its unique identifier
"""
account(id: UUID!): Account @goField(forceResolver: true)
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ type Query {
"""
Viewer is the root query object for the user
"""
viewer: Viewer!
viewer: Viewer
}

type Mutation {
empty: Boolean!
}

"""
Viewer is the root query object for the user
"""
type Viewer {
empty: Boolean!
}
5 changes: 3 additions & 2 deletions graphql/supergraph-dev.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ type Query {
empty: Boolean! @join__field(graph: ACCOUNTS)

"""Viewer is the root query object for the user"""
viewer: Viewer! @join__field(graph: ACCOUNTS)
viewer: Viewer @join__field(graph: ACCOUNTS)
}

scalar Time

scalar UUID

"""Viewer is the root query object for the user"""
type Viewer {
account(id: ID!): Account @join__field(graph: ACCOUNTS)
account(id: UUID!): Account @join__field(graph: ACCOUNTS)
empty: Boolean!
}

Expand Down

0 comments on commit ee2fb52

Please sign in to comment.