Skip to content

Commit

Permalink
Update GraphQL schema for V5
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Mar 17, 2023
1 parent 03263b7 commit c16d341
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type CreateOrganizationPayload {
"""An edge for our `Organization`. May be used by Relay 1."""
organizationEdge(
"""The method to use when ordering `Organization`."""
orderBy: [OrganizationsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [OrganizationsOrderBy!]! = [PRIMARY_KEY_ASC]
): OrganizationsEdge

"""
Expand Down Expand Up @@ -140,7 +140,7 @@ type CreateUserEmailPayload {
"""An edge for our `UserEmail`. May be used by Relay 1."""
userEmailEdge(
"""The method to use when ordering `UserEmail`."""
orderBy: [UserEmailsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [UserEmailsOrderBy!]! = [PRIMARY_KEY_ASC]
): UserEmailsEdge
}

Expand Down Expand Up @@ -194,7 +194,6 @@ type DeleteUserAuthenticationPayload {
unchanged and unused. May be used by a client to track mutations.
"""
clientMutationId: String
deletedUserAuthenticationNodeId: ID

"""
Our root query field type. Allows us to run any query from our mutation payload.
Expand Down Expand Up @@ -225,7 +224,6 @@ type DeleteUserEmailPayload {
unchanged and unused. May be used by a client to track mutations.
"""
clientMutationId: String
deletedUserEmailNodeId: ID

"""
Our root query field type. Allows us to run any query from our mutation payload.
Expand All @@ -241,7 +239,7 @@ type DeleteUserEmailPayload {
"""An edge for our `UserEmail`. May be used by Relay 1."""
userEmailEdge(
"""The method to use when ordering `UserEmail`."""
orderBy: [UserEmailsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [UserEmailsOrderBy!]! = [PRIMARY_KEY_ASC]
): UserEmailsEdge
}

Expand Down Expand Up @@ -338,7 +336,7 @@ type MakeEmailPrimaryPayload {
"""An edge for our `UserEmail`. May be used by Relay 1."""
userEmailEdge(
"""The method to use when ordering `UserEmail`."""
orderBy: [UserEmailsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [UserEmailsOrderBy!]! = [PRIMARY_KEY_ASC]
): UserEmailsEdge
}

Expand Down Expand Up @@ -751,13 +749,19 @@ type PageInfo {
type Query {
"""The currently logged in user (or null if not logged in)."""
currentUser: User

"""Get a single `Organization`."""
organization(id: UUID!): Organization

"""Get a single `Organization`."""
organizationBySlug(slug: String!): Organization

"""
Given an invitation UUID (and, if required, the code that was emailed to you), retrieves the `Organization` that you were invited to.
"""
organizationForInvitation(code: String, invitationId: UUID!): Organization

"""Get a single `OrganizationMembership`."""
organizationMembership(id: UUID!): OrganizationMembership

"""Reads and enables pagination through a set of `Organization`."""
Expand Down Expand Up @@ -788,9 +792,17 @@ type Query {
"""The method to use when ordering `Organization`."""
orderBy: [OrganizationsOrderBy!] = [PRIMARY_KEY_ASC]
): OrganizationsConnection

"""Get a single `User`."""
user(id: UUID!): User

"""Get a single `UserAuthentication`."""
userAuthentication(id: UUID!): UserAuthentication

"""Get a single `User`."""
userByUsername(username: String!): User

"""Get a single `UserEmail`."""
userEmail(id: UUID!): UserEmail
}

Expand Down Expand Up @@ -938,7 +950,7 @@ type TransferOrganizationBillingContactPayload {
"""An edge for our `Organization`. May be used by Relay 1."""
organizationEdge(
"""The method to use when ordering `Organization`."""
orderBy: [OrganizationsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [OrganizationsOrderBy!]! = [PRIMARY_KEY_ASC]
): OrganizationsEdge

"""
Expand Down Expand Up @@ -970,7 +982,7 @@ type TransferOrganizationOwnershipPayload {
"""An edge for our `Organization`. May be used by Relay 1."""
organizationEdge(
"""The method to use when ordering `Organization`."""
orderBy: [OrganizationsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [OrganizationsOrderBy!]! = [PRIMARY_KEY_ASC]
): OrganizationsEdge

"""
Expand Down Expand Up @@ -1013,7 +1025,7 @@ type UpdateOrganizationPayload {
"""An edge for our `Organization`. May be used by Relay 1."""
organizationEdge(
"""The method to use when ordering `Organization`."""
orderBy: [OrganizationsOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [OrganizationsOrderBy!]! = [PRIMARY_KEY_ASC]
): OrganizationsEdge

"""
Expand Down Expand Up @@ -1058,7 +1070,7 @@ type UpdateUserPayload {
"""An edge for our `User`. May be used by Relay 1."""
userEdge(
"""The method to use when ordering `User`."""
orderBy: [UsersOrderBy!] = [PRIMARY_KEY_ASC]
orderBy: [UsersOrderBy!]! = [PRIMARY_KEY_ASC]
): UsersEdge
}

Expand Down

0 comments on commit c16d341

Please sign in to comment.