I hereby claim:
- I am pkosiec on github.
- I am pawelkosiec (https://keybase.io/pawelkosiec) on keybase.
- I have a public key ASDvl3WH7enT4vOTgLcadLFN_CX8HrcHtfH6tYOJb-3Jvwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| module.exports = [ | |
| { | |
| name: "Dog" | |
| }, | |
| { | |
| name: "Cat" | |
| } | |
| ] |
| import { Person } from '../../models'; | |
| const people: Person[] = [ | |
| { | |
| name: "John", | |
| email: "[email protected]", | |
| age: 18, | |
| }, | |
| { | |
| name: "Bob", | |
| emial: "[email protected]", // <-- error underlined in IDE |
| [ | |
| { | |
| "name": "John", | |
| "email": "[email protected]", | |
| "age": 18, | |
| }, | |
| { | |
| "name": "Bob", | |
| "emial": "[email protected]", | |
| "age": "none", |
| const { getObjectId } = require("mongo-seeding"); | |
| const names = ["John", "Joanne", "Bob", "Will", "Chris", "Mike", "Anna", "Jack", "Peter", "Paul"]; | |
| const min = 18; | |
| const max = 100; | |
| module.exports = names.map(name => ({ | |
| firstName: name, | |
| age: Math.floor(Math.random() * (max - min + 1)) + min, | |
| _id: getObjectId(name), | |
| })) |
| const names = ["John", "Joanne", "Bob", "Will", "Chris", "Mike", "Anna", "Jack", "Peter", "Paul"]; | |
| module.exports = names.map(name => ({ | |
| name, | |
| email: "[email protected]", | |
| avatar: "https://placekitten.com/300/300", | |
| })) |
| [ | |
| { | |
| "name": "John", | |
| "email": "[email protected]", | |
| "avatar": "https://placekitten.com/300/300" | |
| }, | |
| { | |
| "name": "Joanne", | |
| "email": "[email protected]", | |
| "avatar": "https://placekitten.com/300/300" |
| { | |
| "name": "{NAME_HERE}", | |
| "email": "[email protected]", | |
| "avatar": "https://placekitten.com/300/300" | |
| } |
| FROM pkosiec/mongo-seeding:3.0.0 | |
| WORKDIR /mydb/ | |
| # Copy your project (import data and all dependencies have to be there) | |
| COPY ./mydb /mydb/ | |
| # Install external dependencies | |
| RUN npm install |