Should add event get called each time with upsert? Consider the following schema:
type User @lambdaOnMutate(add: true, update: true, delete: false) {
name: String! @id
}
With the registered webhook:
self.addWebHookResolvers({
"User.add": ({event}) => console.log(event),
"User.update": ({event}) => console.log(event),
})
And GraphQL mutation:
mutation {
addUser(input: [{
name: "aname"
}], upsert: true){
numUids
}
}
For every mutation request, the add
webhook get called. I expected the corresponding update event to be called after the first request. Besides, ideally, the update
webhook shouldn’t be called since no field was actually updated. @abhimanyusinghgaur, is this the expected/desired behaviour?