add

open override fun add(o: File): Single<String>

Adds a new object to the given collection in an asynchronous way based on the provided CreateProjection. It returns a Single<String> with the generated UID, which is completed 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 Single with the UID

Parameters

projection

the CreateProjection of the object to add