products
{
"path": "products",
"instance": "Array",
"options": {
"type": [
{
"obj": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"name": {},
"quantity": {},
"total": {}
},
"paths": {
"_deleted": {
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false,
"$isUnderneathDocArray": true
},
"_owner_id": {
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"_updated_by_id": {
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"name": {
"enumValues": [],
"regExp": null,
"path": "name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"name"
],
"options": {},
"_index": null,
"$isUnderneathDocArray": true
},
"quantity": {
"path": "quantity",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"quantity"
],
"options": {},
"_index": null,
"$isUnderneathDocArray": true
},
"total": {
"path": "total",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"total"
],
"options": {},
"_index": null,
"$isUnderneathDocArray": true
},
"_id": {
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null,
"$isUnderneathDocArray": true
},
"createdAt": {
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true,
"$isUnderneathDocArray": true
},
"updatedAt": {
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null,
"$isUnderneathDocArray": true
}
},
"aliases": {},
"subpaths": {},
"virtuals": {
"_owner": {
"path": "_owner",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_owner_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"_updated_by": {
"path": "_updated_by",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_updated_by_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"id": {
"path": "id",
"getters": [
null
],
"setters": [],
"options": {}
}
},
"singleNestedPaths": {},
"nested": {},
"inherits": {},
"callQueue": [],
"_indexes": [
[
{
"createdAt": -1
},
{}
],
[
{
"updatedAt": -1
},
{}
]
],
"methods": {},
"methodOptions": {},
"statics": {},
"tree": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"name": {},
"quantity": {},
"total": {},
"_id": {
"auto": true,
"type": "ObjectId"
},
"createdAt": {
"immutable": true
},
"_owner": {
"path": "_owner",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_owner_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"_updated_by": {
"path": "_updated_by",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_updated_by_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"id": {
"path": "id",
"getters": [
null
],
"setters": [],
"options": {}
}
},
"query": {},
"childSchemas": [],
"plugins": [
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
}
],
"$id": 6,
"mapPaths": [],
"s": {
"hooks": {
"_pres": {},
"_posts": {}
}
},
"_userProvidedOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"_perms": {
"admin": "",
"owner": "",
"user": "",
"all": ""
}
},
"options": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"typeKey": "type",
"id": true,
"_id": true,
"validateBeforeSave": true,
"read": null,
"shardKey": null,
"discriminatorKey": "__t",
"autoIndex": null,
"minimize": true,
"optimisticConcurrency": false,
"versionKey": "__v",
"capped": false,
"bufferCommands": true,
"strictQuery": true,
"strict": true,
"_perms": {
"admin": "",
"owner": "",
"user": "",
"all": ""
}
},
"$timestamps": {
"createdAt": "createdAt",
"updatedAt": "updatedAt"
},
"opts": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
}
},
"definition": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"name": {},
"quantity": {},
"total": {}
},
"$globalPluginsApplied": true
}
]
},
"validators": [],
"defaultValue": "[Function]"
}