diff options
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 { |
