Closed Kabangi closed 5 years ago
Hey @Kabangi.
Your use case is valid, and you're right, it should be easier to do.
Your solution (find by id oneOf(ids...), then update or create) is, I think, the best you can do at this moment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
At the moment am using this custom functions to prevent duplicates. This works great but not sure if this is the recommended way of doing it. I wish there was a functionality such as
firstOrCreate
that either modifies properties or create a fresh record.