UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

711 lines 14.5 kB
{ "type": "File", "start": 0, "end": 101, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 101, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 45, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 45 } }, "declaration": null, "specifiers": [ { "type": "ExportSpecifier", "start": 9, "end": 26, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 26 } }, "local": { "type": "Identifier", "start": 9, "end": 16, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 }, "identifierName": "default" }, "name": "default" }, "exported": { "type": "Identifier", "start": 20, "end": 26, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 26 }, "identifierName": "Seeder" }, "name": "Seeder" } } ], "source": { "type": "StringLiteral", "start": 34, "end": 44, "loc": { "start": { "line": 1, "column": 34 }, "end": { "line": 1, "column": 44 } }, "extra": { "rawValue": "./seeder", "raw": "'./seeder'" }, "value": "./seeder" } }, { "type": "ExportNamedDeclaration", "start": 46, "end": 100, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 54 } }, "declaration": null, "specifiers": [ { "type": "ExportSpecifier", "start": 55, "end": 76, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 30 } }, "local": { "type": "Identifier", "start": 55, "end": 62, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 }, "identifierName": "default" }, "name": "default" }, "exported": { "type": "Identifier", "start": 66, "end": 76, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 30 }, "identifierName": "BaseLogger" }, "name": "BaseLogger" } } ], "source": { "type": "StringLiteral", "start": 84, "end": 99, "loc": { "start": { "line": 2, "column": 38 }, "end": { "line": 2, "column": 53 } }, "extra": { "rawValue": "./base-logger", "raw": "'./base-logger'" }, "value": "./base-logger" } } ], "directives": [] }, "comments": [], "tokens": [ { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "default", "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "default", "start": 9, "end": 16, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "as", "start": 17, "end": 19, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Seeder", "start": 20, "end": 26, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 27, "end": 28, "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 29, "end": 33, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 33 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./seeder", "start": 34, "end": 44, "loc": { "start": { "line": 1, "column": 34 }, "end": { "line": 1, "column": 44 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 44, "end": 45, "loc": { "start": { "line": 1, "column": 44 }, "end": { "line": 1, "column": 45 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 46, "end": 52, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 53, "end": 54, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "default", "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "default", "start": 55, "end": 62, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "as", "start": 63, "end": 65, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BaseLogger", "start": 66, "end": 76, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 77, "end": 78, "loc": { "start": { "line": 2, "column": 31 }, "end": { "line": 2, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 79, "end": 83, "loc": { "start": { "line": 2, "column": 33 }, "end": { "line": 2, "column": 37 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./base-logger", "start": 84, "end": 99, "loc": { "start": { "line": 2, "column": 38 }, "end": { "line": 2, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 99, "end": 100, "loc": { "start": { "line": 2, "column": 53 }, "end": { "line": 2, "column": 54 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 101, "end": 101, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 0 } } } ] }