// subscribe whenever a ticket is created, no matter if its via a nested query or whatever
subscribe.create.ticket((model, operation, args, db) => {
db.$transaction((tx) => {
await tx.model.operation(args)
await anotherTask()
})
})
// subscribe whenever a ticket is created, no matter if its via a nested query or whatever
subscribe.create.ticket((model, operation, args, db) => {
db.$transaction((tx) => {
await tx.model.operation(args)
await anotherTask()
})
})