Skip to content

Commit

Permalink
feat: updating supergraph schema with prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzorn93 committed Jan 2, 2025
1 parent d349d50 commit 3b5651d
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions apps/services/apollo-router/supergraph-prod.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,37 @@ directive @join__owner(graph: join__Graph!) on INTERFACE | OBJECT
directive @join__type(graph: join__Graph!, key: join__FieldSet) repeatable on INTERFACE | OBJECT

type Account {
email: String!
id: ID!
"""The createdAt time of the account"""
createdAt: Time!

"""The email address of the account"""
emailAddress: String!

"""The unique identifier for the account"""
id: UUID!

"""The updatedAt time of the account"""
updatedAt: Time!
}

type Mutation {
empty: Boolean! @join__field(graph: ACCOUNTS)
}

type Query {
accounts: [Account!]! @join__field(graph: ACCOUNTS)
empty: Boolean! @join__field(graph: ACCOUNTS)
todos: [Todo!]! @join__field(graph: ACCOUNTS)

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

type Todo {
done: Boolean!
id: ID!
text: String!
scalar Time

scalar UUID

type Viewer {
account(id: ID!): Account @join__field(graph: ACCOUNTS)
empty: Boolean!
}

enum core__Purpose {
Expand Down

0 comments on commit 3b5651d

Please sign in to comment.