Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADVAPP-19]: Create a UUID Scalar #377

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app-modules/alert/graphql/alert.graphql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type Alert @model(class: "AdvisingApp\\Alert\\Models\\Alert") {
"Unique primary key."
id: ID!
id: UUID!

"The concern of the alert."
concern: Educatable! @morphTo
Expand Down Expand Up @@ -29,7 +29,7 @@ type Alert @model(class: "AdvisingApp\\Alert\\Models\\Alert") {

extend type Query {
"Get an alert by its primary key."
alert("Search by primary key." id: ID! @whereKey): Alert
alert("Search by primary key." id: UUID! @whereKey): Alert
@find
@canResolved(ability: "view")

Expand All @@ -39,7 +39,7 @@ extend type Query {

input CreateAlertInput {
"The id of the concern of the alert."
concern_id: ID! @rules(apply: ["required"])
concern_id: UUID! @rules(apply: ["required"])

"The type of concern of the alert."
concern_type: String! @rules(apply: ["required", "in:student,prospect"])
Expand Down Expand Up @@ -80,13 +80,13 @@ extend type Mutation {
"Update an existing alert."
updateAlert(
"The primary key of the alert."
id: ID! @drop @whereKey
id: UUID! @drop @whereKey

input: UpdateAlertInput! @spread
): Alert! @update @canFind(ability: "update", find: "id")

"Delete an existing alert."
deleteAlert("The primary key of the alert." id: ID! @whereKey): Alert
deleteAlert("The primary key of the alert." id: UUID! @whereKey): Alert
@delete
@canFind(ability: "delete", find: "id")
}
10 changes: 5 additions & 5 deletions app-modules/care-team/graphql/care-team.graphql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type UserCareTeam @model(class: "AdvisingApp\\CareTeam\\Models\\CareTeam") {
"Unique primary key."
id: ID!
id: UUID!
"The user related to this care team assignment."
user: User! @belongsTo
"The educatable in the user's care team."
Expand All @@ -13,7 +13,7 @@ type UserCareTeam @model(class: "AdvisingApp\\CareTeam\\Models\\CareTeam") {

extend type Query {
"Get a care team assignment by its primary key."
userCareTeam("Search by primary key." id: ID! @whereKey): UserCareTeam
userCareTeam("Search by primary key." id: UUID! @whereKey): UserCareTeam
@find
@canResolved(ability: "view")

Expand All @@ -25,7 +25,7 @@ extend type Mutation {
"Create a new care team assignment."
createUserCareTeam(
"The user to add to the care team of."
user_id: ID!
user_id: UUID!
@rules(
apply: [
"required"
Expand All @@ -35,7 +35,7 @@ extend type Mutation {
)

"The educatable to add to the care team."
educatable_id: ID!
educatable_id: EducatableId!
@rules(
apply: [
"required"
Expand All @@ -51,6 +51,6 @@ extend type Mutation {
"Delete an existing care team assignment."
deleteUserCareTeam(
"The primary key of the care team assignment."
id: ID! @whereKey
id: UUID! @whereKey
): UserCareTeam @delete @canFind(ability: "delete", find: "id")
}
2 changes: 1 addition & 1 deletion app-modules/division/graphql/division.graphql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type Division @model(class: "AdvisingApp\\Division\\Models\\Division") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the division."
name: String!
Expand Down
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-campaign.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionCampaign
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionCampaign") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction campaign."
name: String!
Expand All @@ -21,7 +21,7 @@ type InteractionCampaign

input InteractionCampaignQuery {
"The unique primary key of the interaction campaign."
id: ID
id: UUID

"The name of the interaction relation."
name: String
Expand All @@ -41,7 +41,7 @@ input InteractionCampaignQuery {

extend type Query {
"Get a specific interaction campaign by id."
interactionCampaign(id: ID! @eq): InteractionCampaign
interactionCampaign(id: UUID! @eq): InteractionCampaign
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -86,7 +86,7 @@ extend type Mutation {
"Update an existing interaction campaign."
updateInteractionCampaign(
"The identifier of the interaction campaign you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionCampaignInput! @spread
Expand All @@ -95,6 +95,6 @@ extend type Mutation {
"Delete an existing interaction campaign."
deleteInteractionCampaign(
"The identifier of the interaction campaign you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionCampaign @canFind(ability: "delete", find: "id") @delete
}
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-driver.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionDriver
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionDriver") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction driver."
name: String!
Expand All @@ -21,7 +21,7 @@ type InteractionDriver

input InteractionDriverQuery {
"The unique primary key of the interaction driver."
id: ID
id: UUID

"The name of the interaction driver."
name: String
Expand All @@ -41,7 +41,7 @@ input InteractionDriverQuery {

extend type Query {
"Get a specific interaction driver by id."
interactionDriver(id: ID! @eq): InteractionDriver
interactionDriver(id: UUID! @eq): InteractionDriver
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -84,7 +84,7 @@ extend type Mutation {
"Update an existing interaction driver."
updateInteractionDriver(
"The identifier of the interaction driver you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionDriverInput! @spread
Expand All @@ -93,6 +93,6 @@ extend type Mutation {
"Delete an existing interaction driver."
deleteInteractionDriver(
"The identifier of the interaction driver you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionDriver @canFind(ability: "delete", find: "id") @delete
}
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-outcome.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionOutcome
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionOutcome") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction outcome."
name: String!
Expand All @@ -21,7 +21,7 @@ type InteractionOutcome

input InteractionOutcomeQuery {
"The unique primary key of the interaction outcome."
id: ID
id: UUID

"The name of the interaction outcome."
name: String
Expand All @@ -41,7 +41,7 @@ input InteractionOutcomeQuery {

extend type Query {
"Get a specific interaction outcome by id."
interactionOutcome(id: ID! @eq): InteractionOutcome
interactionOutcome(id: UUID! @eq): InteractionOutcome
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -84,7 +84,7 @@ extend type Mutation {
"Update an existing interaction outcome."
updateInteractionOutcome(
"The identifier of the interaction outcome you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionOutcomeInput! @spread
Expand All @@ -93,6 +93,6 @@ extend type Mutation {
"Delete an existing interaction outcome."
deleteInteractionOutcome(
"The identifier of the interaction outcome you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionOutcome @canFind(ability: "delete", find: "id") @delete
}
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-relation.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionRelation
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionRelation") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction relation."
name: String!
Expand All @@ -21,7 +21,7 @@ type InteractionRelation

input InteractionRelationQuery {
"The unique primary key of the interaction relation."
id: ID
id: UUID

"The name of the interaction relation."
name: String
Expand All @@ -41,7 +41,7 @@ input InteractionRelationQuery {

extend type Query {
"Get a specific interaction relation by id."
interactionRelation(id: ID! @eq): InteractionRelation
interactionRelation(id: UUID! @eq): InteractionRelation
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -86,7 +86,7 @@ extend type Mutation {
"Update an existing interaction relation."
updateInteractionRelation(
"The identifier of the interaction relation you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionRelationInput! @spread
Expand All @@ -95,6 +95,6 @@ extend type Mutation {
"Delete an existing interaction relation."
deleteInteractionRelation(
"The identifier of the interaction relation you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionRelation @canFind(ability: "delete", find: "id") @delete
}
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-status.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionStatus
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionStatus") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction driver."
name: String!
Expand All @@ -24,7 +24,7 @@ type InteractionStatus

input InteractionStatusesQuery {
"The unique primary key of the interaction status."
id: ID
id: UUID

"The name of the interaction status."
name: String
Expand All @@ -47,7 +47,7 @@ input InteractionStatusesQuery {

extend type Query {
"Get a specific interaction status by id."
interactionStatus(id: ID! @eq): InteractionStatus
interactionStatus(id: UUID! @eq): InteractionStatus
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -90,7 +90,7 @@ extend type Mutation {
"Update an existing interaction status."
updateInteractionStatus(
"The identifier of the interaction status you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionStatusInput! @spread
Expand All @@ -99,6 +99,6 @@ extend type Mutation {
"Delete an existing interaction status."
deleteInteractionStatus(
"The identifier of the interaction status you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionStatus @canFind(ability: "delete", find: "id") @delete
}
10 changes: 5 additions & 5 deletions app-modules/interaction/graphql/interaction-type.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type InteractionType
@model(class: "AdvisingApp\\Interaction\\Models\\InteractionType") {
"Unique primary key."
id: ID!
id: UUID!

"The name of the interaction type."
name: String!
Expand All @@ -21,7 +21,7 @@ type InteractionType

input InteractionTypeQuery {
"The unique primary key of the interaction type."
id: ID
id: UUID

"The name of the interaction relation."
name: String
Expand All @@ -41,7 +41,7 @@ input InteractionTypeQuery {

extend type Query {
"Get a specific interaction type by id."
interactionType(id: ID! @eq): InteractionType
interactionType(id: UUID! @eq): InteractionType
@find
@softDeletes
@canResolved(ability: "view")
Expand Down Expand Up @@ -81,7 +81,7 @@ extend type Mutation {
"Update an existing interaction type."
updateInteractionType(
"The identifier of the interaction type you would like to update."
id: ID! @whereKey
id: UUID! @whereKey

"The fields you would like to update."
input: UpdateInteractionTypeInput! @spread
Expand All @@ -90,6 +90,6 @@ extend type Mutation {
"Delete an existing interaction type."
deleteInteractionType(
"The identifier of the interaction type you would like to delete."
id: ID! @whereKey
id: UUID! @whereKey
): InteractionType @canFind(ability: "delete", find: "id") @delete
}
Loading