Skip to content

Commit

Permalink
Update relationship input types to respect graphql.isEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Aug 25, 2021
1 parent 292ea26 commit 34d1099
Show file tree
Hide file tree
Showing 29 changed files with 241 additions and 62 deletions.
2 changes: 1 addition & 1 deletion examples-staging/assets-cloud/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples-staging/assets-local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
4 changes: 2 additions & 2 deletions examples-staging/basic/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,16 @@ input FileFieldInput {
}

input PhoneNumberRelateToManyForUpdateInput {
create: [PhoneNumberCreateInput!]
disconnect: [PhoneNumberWhereUniqueInput!]
set: [PhoneNumberWhereUniqueInput!]
create: [PhoneNumberCreateInput!]
connect: [PhoneNumberWhereUniqueInput!]
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
10 changes: 5 additions & 5 deletions examples-staging/ecommerce/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ input UserUpdateInput {
}

input CartItemRelateToManyForUpdateInput {
create: [CartItemCreateInput!]
disconnect: [CartItemWhereUniqueInput!]
set: [CartItemWhereUniqueInput!]
create: [CartItemCreateInput!]
connect: [CartItemWhereUniqueInput!]
}

input OrderRelateToManyForUpdateInput {
create: [OrderCreateInput!]
disconnect: [OrderWhereUniqueInput!]
set: [OrderWhereUniqueInput!]
create: [OrderCreateInput!]
connect: [OrderWhereUniqueInput!]
}

Expand All @@ -265,9 +265,9 @@ input RoleRelateToOneForUpdateInput {
}

input ProductRelateToManyForUpdateInput {
create: [ProductCreateInput!]
disconnect: [ProductWhereUniqueInput!]
set: [ProductWhereUniqueInput!]
create: [ProductCreateInput!]
connect: [ProductWhereUniqueInput!]
}

Expand Down Expand Up @@ -622,9 +622,9 @@ input OrderUpdateInput {
}

input OrderItemRelateToManyForUpdateInput {
create: [OrderItemCreateInput!]
disconnect: [OrderItemWhereUniqueInput!]
set: [OrderItemWhereUniqueInput!]
create: [OrderItemCreateInput!]
connect: [OrderItemWhereUniqueInput!]
}

Expand Down Expand Up @@ -690,9 +690,9 @@ input RoleUpdateInput {
}

input UserRelateToManyForUpdateInput {
create: [UserCreateInput!]
disconnect: [UserWhereUniqueInput!]
set: [UserWhereUniqueInput!]
create: [UserCreateInput!]
connect: [UserWhereUniqueInput!]
}

Expand Down
4 changes: 2 additions & 2 deletions examples-staging/graphql-api-endpoint/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ input UserUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down Expand Up @@ -227,9 +227,9 @@ input UserRelateToOneForUpdateInput {
}

input TagRelateToManyForUpdateInput {
create: [TagCreateInput!]
disconnect: [TagWhereUniqueInput!]
set: [TagWhereUniqueInput!]
create: [TagCreateInput!]
connect: [TagWhereUniqueInput!]
}

Expand Down
4 changes: 2 additions & 2 deletions examples-staging/roles/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ input RoleRelateToOneForUpdateInput {
}

input TodoRelateToManyForUpdateInput {
create: [TodoCreateInput!]
disconnect: [TodoWhereUniqueInput!]
set: [TodoWhereUniqueInput!]
create: [TodoCreateInput!]
connect: [TodoWhereUniqueInput!]
}

Expand Down Expand Up @@ -282,9 +282,9 @@ input RoleUpdateInput {
}

input PersonRelateToManyForUpdateInput {
create: [PersonCreateInput!]
disconnect: [PersonWhereUniqueInput!]
set: [PersonWhereUniqueInput!]
create: [PersonCreateInput!]
connect: [PersonWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples-staging/sandbox/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ input UserUpdateInput {
}

input TodoRelateToManyForUpdateInput {
create: [TodoCreateInput!]
disconnect: [TodoWhereUniqueInput!]
set: [TodoWhereUniqueInput!]
create: [TodoCreateInput!]
connect: [TodoWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/blog/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-logo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-navigation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-pages/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field-view/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/default-values/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/document-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/extend-graphql-schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/json/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ input PersonUpdateInput {
}

input PackageRelateToManyForUpdateInput {
create: [PackageCreateInput!]
disconnect: [PackageWhereUniqueInput!]
set: [PackageWhereUniqueInput!]
create: [PackageCreateInput!]
connect: [PackageWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/task-manager/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/testing/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/virtual-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ input AuthorUpdateInput {
}

input PostRelateToManyForUpdateInput {
create: [PostCreateInput!]
disconnect: [PostWhereUniqueInput!]
set: [PostWhereUniqueInput!]
create: [PostCreateInput!]
connect: [PostWhereUniqueInput!]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/with-auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ input PersonUpdateInput {
}

input TaskRelateToManyForUpdateInput {
create: [TaskCreateInput!]
disconnect: [TaskWhereUniqueInput!]
set: [TaskWhereUniqueInput!]
create: [TaskCreateInput!]
connect: [TaskWhereUniqueInput!]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ describe('Type Generation', () => {

expect(printType(schema.getType('ZipRelateToManyForUpdateInput')!)).toMatchInlineSnapshot(`
"input ZipRelateToManyForUpdateInput {
create: [ZipCreateInput!]
disconnect: [ZipWhereUniqueInput!]
set: [ZipWhereUniqueInput!]
create: [ZipCreateInput!]
connect: [ZipWhereUniqueInput!]
}"
`);
Expand Down
Loading

0 comments on commit 34d1099

Please sign in to comment.