Document QML Type
Document proxies a single document stored in the Database. More...
Import Statement: | import U1db 1.0 |
Properties
Detailed Description
This is the declarative API equivalent of Database::putDoc() and Database::getDoc().
Document { docId: 'myId' defaults: { color: 'blue' } create: true }
See also Database.
Property Documentation
Updates the contents of the document. A valid docId must be set.
The docId can be that of an existing document in the database and will determine what getContents() returns. If no such documents exists, setDefaults() can be used to supply a preset.