#Update a document using local API but keep it in draft

4 messages · Page 1 of 1 (latest)

modest robin
#

This could just be my brain not working at the end of the week but here goes.

Is there a straightforward way to update a value in a draft document using the local API without needing to publish it?

Technically I could do a .findByID() first and check whether its _status is draft but I'd prefer to not have to do that and just use an .update() directly (since I could have many documents selected at once).

Thanks!

weak shoreBOT
#
modest robin
#

draft: true to the rescue.

weak shoreBOT