## NoParamCallback : function

Callback with no parameter

**Kind**: global typedef **Params** - err Error ## compareStrings ⇒ number

String comparison function.

  if (a < b) return -1
  if (a > b) return 1
  return 0
**Kind**: global typedef **Params** - a string - b string ## MultipleDocumentsCallback : function

Callback that returns an Array of documents

**Kind**: global typedef **Params** - err Error - docs [Array.<document>](#document) ## SingleDocumentCallback : function

Callback that returns a single document

**Kind**: global typedef **Params** - err Error - docs [document](#document) ## AsyncFunction ⇒ Promise.<\*>

Generic async function

**Kind**: global typedef **Params** - ...args \* ## document : Object.<string, \*>

Generic document in NeDB. It consists of an Object with anything you want inside.

**Kind**: global typedef **Properties** | Name | Type | Description | | --- | --- | --- | | [_id] | string |

Internal _id of the document, which can be null or undefined at some points (when not inserted yet for example).

| ## query : Object.<string, \*>

Nedb query.

Each key of a query references a field name, which can use the dot-notation to reference subfields inside nested documents, arrays, arrays of subdocuments and to match a specific element of an array.

Each value of a query can be one of the following:

**Kind**: global typedef ## projection : Object.<string, (0\|1)>

Nedb projection.

You can give find and findOne an optional second argument, projections. The syntax is the same as MongoDB: { a: 1, b: 1 } to return only the a and b fields, { a: 0, b: 0 } to omit these two fields. You cannot use both modes at the time, except for _id which is by default always returned and which you can choose to omit. You can project on nested documents.

To reference subfields, you can use the dot-notation.

**Kind**: global typedef ## serializationHook ⇒ string

The beforeDeserializationand afterDeserialization callbacks should

**Kind**: global typedef **Params** - x string ## rawIndex **Kind**: global typedef **Properties** | Name | Type | | --- | --- | | fieldName | string | | [unique] | boolean | | [sparse] | boolean |