Skip to content

Commit 408f15e

Browse files
committed
fix: subscription for ORDER_REMOVED event
1 parent 3715a82 commit 408f15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/northwind/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ schemaComposer.Mutation.addFields({
9595
removeOrder: OrderTC.getResolver('removeOne', [
9696
async (next, s, a, c, i) => {
9797
const res = await next(s, a, c, i);
98-
if (res?._id) pubsub.publish('ORDER_REMOVED', res?._id);
98+
if (res?.recordId) pubsub.publish('ORDER_REMOVED', res?.recordId);
9999
return res;
100100
},
101101
]),

0 commit comments

Comments
 (0)