-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To-many relationship input updates (#6224)
- Loading branch information
Showing
40 changed files
with
677 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
'@keystone-next/fields': major | ||
'@keystone-next/keystone': major | ||
'@keystone-next/types': major | ||
--- | ||
|
||
`disconnectAll` has been replaced by `set` in to-many relationship inputs, the equivalent to `disconnectAll: true` is now `set: []`. There are also seperate input types for create and update where the input for create doesn't have `disconnect` or `set`. The inputs in the lists in the input field are now also non-null. | ||
|
||
If you have a list called `Item`, the to-many relationship inputs now look like this: | ||
|
||
```graphql | ||
input ItemRelateToManyForCreateInput { | ||
create: [ItemCreateInput!] | ||
connect: [ItemWhereUniqueInput!] | ||
} | ||
input ItemRelateToManyForUpdateInput { | ||
disconnect: [ItemWhereUniqueInput!] | ||
set: [ItemWhereUniqueInput!] | ||
create: [ItemCreateInput!] | ||
connect: [ItemWhereUniqueInput!] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3564b34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: