UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

725 lines 14.5 kB
{ "type": "File", "start": 0, "end": 95, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 95, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "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": "config" }, "name": "config" } } ], "source": { "type": "StringLiteral", "start": 34, "end": 44, "loc": { "start": { "line": 1, "column": 34 }, "end": { "line": 1, "column": 44 } }, "extra": { "rawValue": "./config", "raw": "'./config'" }, "value": "./config" } }, { "type": "ExportAllDeclaration", "start": 46, "end": 69, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 23 } }, "source": { "type": "StringLiteral", "start": 60, "end": 68, "loc": { "start": { "line": 2, "column": 14 }, "end": { "line": 2, "column": 22 } }, "extra": { "rawValue": "./core", "raw": "'./core'" }, "value": "./core" } }, { "type": "ExportAllDeclaration", "start": 70, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 24 } }, "source": { "type": "StringLiteral", "start": 84, "end": 93, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 23 } }, "extra": { "rawValue": "./utils", "raw": "'./utils'" }, "value": "./utils" } } ], "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": "config", "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": "./config", "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": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 53, "end": 54, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 55, "end": 59, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./core", "start": 60, "end": 68, "loc": { "start": { "line": 2, "column": 14 }, "end": { "line": 2, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 68, "end": 69, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 23 } } }, { "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": 70, "end": 76, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 77, "end": 78, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 8 } } }, { "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": 3, "column": 9 }, "end": { "line": 3, "column": 13 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./utils", "start": 84, "end": 93, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 93, "end": 94, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 24 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 95, "end": 95, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 0 } } } ] }