You can set the _id field to be the _id of the collection record.
If you use a dataset, use setFieldValue(‘_id’, userId ) . See here .
put all the fields in infoObject, the:
infoObject._id = userId;
wixData.save('CollectionName', infoObject),
You can set the _id field to be the _id of the collection record.
If you use a dataset, use setFieldValue(‘_id’, userId ) . See here .
put all the fields in infoObject, the:
infoObject._id = userId;
wixData.save('CollectionName', infoObject),