Skip to content

Commit

Permalink
Fixes Relationship field inline connect fields throwing 400 errors (#…
Browse files Browse the repository at this point in the history
…6526)

* Update index.tsx

* Create large-actors-worry.md
  • Loading branch information
bladey authored Sep 10, 2021
1 parent d9e1861 commit a645861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/large-actors-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Fixed Relationship field inline connect throwing 400 errors when selecting a value.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function Cards({
try {
const { data, errors } = await client.query({
query: gql`query ($ids: [ID!]!) {
items: ${foreignList.gqlNames.listQueryName}(where: {id_in:$ids}) {
items: ${foreignList.gqlNames.listQueryName}(where: { id: { in: $ids }}) {
${selectedFields}
}
}`,
Expand Down

0 comments on commit a645861

Please sign in to comment.