suspendAdd

open suspend override fun suspendAdd(o: P): String

Adds a new object to the given collection in a suspend way based on the provided CreateProjection. It returns the generated UID when the object is added to the database. It adds an object with a State.TO_POST, which will be uploaded to the server in the next upload.

Return

the UID

Parameters

o

the CreateProjection of the object to add