Chord Types model for MongoDB using Mongoose.
Defines the schema and virtual references for chord types.
- Description:
- Chord Types model for MongoDB using Mongoose. Defines the schema and virtual references for chord types.
- Source:
Methods
(static) chordTypeSchema(fields, options)
- Description:
- chordSchema - Mongoose schema for chord types.
- Source:
Properties:
Name | Type | Description |
---|---|---|
fields._id |
String | Custom ID for the chord type. |
fields.name |
Object | Name of the chord type in different languages. |
fields.intervals |
Array | Array of intervals for the chord type. |
fields.description |
Object | Description of the chord type in different languages. |
options._id |
boolean | Cancel automatic generation of "_id" field. |
Parameters:
Name | Type | Description |
---|---|---|
fields |
Object | Options for the schema. |
options |
Object | Options for the schema. |