Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does receiving a null node break the execution of the mutation in @appendNode? #4624

Open
vinibgoulart opened this issue Feb 24, 2024 · 0 comments

Comments

@vinibgoulart
Copy link

vinibgoulart commented Feb 24, 2024

Why does receiving a null node break the execution of the mutation? Would it be possible to just not update this node and close it but complete the mutation?

When I receive a null node in return of my mutation, I receive the following error: "MutationHandlers: Expected target node to exist."

warning(false, 'MutationHandlers: Expected target node to exist.');

mutation StockCreateMutation(
    $input: StockCreateInput!
    $connections: [ID!]!
  ) {
    StockCreate(input: $input) {
      stock @appendNode(connections: $connections, edgeTypeName: "StockEdge") {
        id
        type
        quantity
        createdAt
        createdBy {
          id
          name
        }
        product {
          id
          name
          stock
        }
      }
      error
      success
    }
  }
@vinibgoulart vinibgoulart changed the title Why does receiving a null node break the execution of the mutation? Why does receiving a null node break the execution of the mutation in @appendNode? Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant