You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
}
The text was updated successfully, but these errors were encountered:
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
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."
relay/packages/relay-runtime/handlers/connection/MutationHandlers.js
Line 195 in ee03182
The text was updated successfully, but these errors were encountered: