Miscellaneous

To String & JSON

db.get('tag').toString() // returns data as string
db.get('tag').toJSON() // returns data as an object, if possible

Parameters

None

End

If you want to end a string of methods, you can with .end(). It emits the end event and no methods can be added after it. Note: this is not required.

db.get("tag").overwrite(data).end()

Exit

If you wish to exit the Record editor API, call the exit() method and it will return the class.

db.get('tag').overwrite(data).exit().//any_class_function

Something missing?

Use the custom() method to run a custom function without leaving the Record Editor API.

We also have a custom() method on the Dubnium class.

Or if you wish to have it added to the API, tell us!

returnType

About

Some functions have the returnType parameter. The values accepted are 1 and 2.

1

Return as JSON.

2

Return as an Array.

Last updated

Was this helpful?