kstulgysK
Convex Communityβ€’13mo agoβ€’
1 reply
kstulgys

How to properly update many to many records with ents?

Do I need to update (add or remove) on both sides or one is enough for convex to figure out? I.e:

       await payLink.patch({
          customers: { add: [customer._id] },
        });
        await customer.patch({
          payLinks: { add: [payLink._id] },
        });
Was this page helpful?