Abstract
Readonly
createdThe creation time of the document as a string in the UTC time zone using an ISO8601 format. By default, SODA sets this automatically.
Readonly
keyA unique key value for this document. By default, SODA automatically generates the key.
Readonly
lastLast modified time of the document as a string in the UTC time zone using an ISO8601 format. By default, SODA sets this automatically.
Readonly
mediaAn arbitrary string value designating the content media type. The recommendation when creating documents is to use a MIME type for the media type. By default this property will be 'application/json'.
Readonly
versionVersion of the document. By default, SODA automatically updates the version each time the document is changed.
Abstract
getReturn the document content as an object.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadocgetcontent
the document content as an object.
an exception if the document content is not JSON and cannot be converted to an object.
Abstract
getReturn JSON document content as a string. If the document encoding is unknown, UTF-8 will be used.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadocgetcontentasstring
the document content as a string.
SODA document class. SodaDocuments represents the document for SODA read and write operations.
See
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadocumentclass