Skip to content
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
Open
@slikts

Description

@slikts

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions