A string describing the data format returned by the database. Either json or bson.
#### .build (schema: ViaSchema): Promise
Ensures that the required tables, collections, databases, and so on are created.
#### .create (data: Object): Promise
Creates a new entry in the database for the supplied plain object.
Returns the data stored in the database, it may have additional fields (such as _id pr _rev).
The filter is a plain Mongo Query Document.
You can choose the fields you want to select. (By default, the proxy will try to return all the fields).
Given this document:
``json
{
foo: "foo string",
quz: "quz string",
child: {
hello: "world!",
bar: 42
},
atoms: [
{
name: "hydrogen",
number: 1
},
{
name: "carbon",
number: 6
}
]
}
`` And this projection:
``json
{
"foo": true,
"child.bar": true,
"atoms[].name": true
}
`` The result will contain at least:
``json
{
foo: "foo string",
child: {
bar: 42
},
atoms: [
{
name: "hydrogen"
},
{
name: "carbon"
}
]
}
``