diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-23 11:11:09 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-23 11:11:09 -0400 |
| commit | 4fb8969f6994d8414f388f583d8e270d4e4a67e9 (patch) | |
| tree | dad4cd0eeda0fdc71e4f925c263668763f2e4dff /backend | |
| parent | fa16c52917305e21823294e3a4e384bfeae50da0 (diff) | |
ya
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/database/datamodel.graphql | 2 | ||||
| -rw-r--r-- | backend/src/generated/prisma.graphql | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/database/datamodel.graphql b/backend/database/datamodel.graphql index b35f423..f31a089 100644 --- a/backend/database/datamodel.graphql +++ b/backend/database/datamodel.graphql @@ -27,7 +27,7 @@ type User { type CartItem { id: ID! @unique quantity: Int! @default(value: 1) - item: Item! # Relationship to an Item + item: Item # Relationship to an Item user: User! # Relationship to a user createdAt: DateTime! updatedAt: DateTime! diff --git a/backend/src/generated/prisma.graphql b/backend/src/generated/prisma.graphql index d910a39..2ceacae 100644 --- a/backend/src/generated/prisma.graphql +++ b/backend/src/generated/prisma.graphql @@ -8,7 +8,7 @@ type CartItem implements Node { id: ID! quantity: Int! - item(where: ItemWhereInput): Item! + item(where: ItemWhereInput): Item user(where: UserWhereInput): User! createdAt: DateTime! updatedAt: DateTime! @@ -116,7 +116,7 @@ type CartItemConnection { input CartItemCreateInput { quantity: Int - item: ItemCreateOneInput! + item: ItemCreateOneInput user: UserCreateOneWithoutCartInput! } @@ -127,7 +127,7 @@ input CartItemCreateManyWithoutUserInput { input CartItemCreateWithoutUserInput { quantity: Int - item: ItemCreateOneInput! + item: ItemCreateOneInput } type CartItemEdge { |
