This repository was archived by the owner on Apr 9, 2024. It is now read-only.
This repository was archived by the owner on Apr 9, 2024. It is now read-only.
Upsert fails silently #58
Open
Description
Working example: https://codesandbox.io/s/graphql-genie-upsert-issue-yckp9
- IDL
- Genie Version 0.4.24
- Fortune Adapter fortune-indexeddb 1.1.2
Schema:
type Item {
id: ID!
user: User!
content: String!
}
type User {
id: ID!
name: String! @unique
fullName: String!
created: DateTime @createdTimestamp
}
Mutation:
mutation {
createItem(
input: {
data: {
user: {
upsert: {
create: { name: "test" }
update: { fullName: "Test T." }
where: { name: "test" }
}
}
content: "Lorem ipsum"
}
}
) {
data {
id
user {
name
fullName
}
content
}
}
}
The upsert fails silently and the user is not inserted.
Metadata
Metadata
Assignees
Labels
No labels