Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.packages.insertMany([{
- name: "Package no. 2534",
- destination: "Alabama",
- items: [
- {name: "watch", type: "electronic", quantity: 6},
- {name: "baseball bat", type: "carpentry", quantity: 8},
- {name: "basil", type: "plant", quantity: 3}
- ]
- },
- {
- name: "Package no. 1",
- items: [
- {name: "handheld", type: "electronic", quantity: 8},
- ]
- },
- {
- name: "Packie",
- items: [
- {name: "Maybach", type: "car", quantity: 1},
- {name: "pitching machine", type: "electromechanical", quantity: 5},
- {name: "dasy", type: "plant", quantity: 401}
- ]
- },
- {
- name: "Big Box",
- items: [
- {name: "bath tub", type: "home appliance", quantity: 600},
- {name: "AC unit", type: "electric", quantity: 8645},
- {name: "football", type: "sport accesory", quantity: 34673}
- ]
- }
- ])
- db.inventory.insertMany([{
- name: "chair",
- type: "furniture",
- weight: 15,
- quantity: 12
- },
- {
- name: "car",
- type: "other",
- weight: 1589,
- quantity: 2
- },
- {
- name: "table",
- type: "furniture",
- weight: 34,
- quantity: 7
- },
- {
- name: "horse",
- type: "animal",
- weight: 198,
- quantity: 1
- },
- {
- name: "wig",
- type: "other",
- weight: 0.1,
- quantity: 21
- },
- {
- name: "pencil",
- type: "stationery",
- weight: 0.04,
- quantity: 345
- }])
- db.sillinesses.insertMany([{
- silly: "steps",
- bob: ["marley", "harley", "builder"],
- coolness: 10.01
- },
- {
- silly: "faces",
- bob: ["bip", "pob", "goose", "smoose"],
- coolness: 9.99
- },
- {
- silly: "ideas",
- bob: ["president", "minister", "senator", "congresman"],
- coolness: -1000
- },
- {
- silly: "hats",
- bob: ["bean", "bread", "buffet", "barbeque"],
- coolness: 11.3
- }])
- db.orders.insertMany([{
- client: {
- firstName: "John",
- lastName: "Smith" },
- orderedItems: [
- { name: "itemA", qty: 5},
- { name: "itemS", qty: 3} ]
- },
- {
- client: {
- firstName: "John",
- lastName: "Jacobie" },
- orderedItems: [
- { name: "itemA", qty: 2},
- { name: "itemB", qty: 4} ]
- },
- {
- client: {
- firstName: "BOb",
- lastName: "Smith" },
- orderedItems: [
- { name: "itemC", qty: 5},
- { name: "itemD", qty: 7} ]
- },
- {
- client: {
- firstName: "John",
- lastName: "Scott" },
- orderedItems: [
- { name: "itemA", qty: 1},
- { name: "itemD", qty: 3} ]
- },
- {
- client: {
- firstName: "Scot",
- lastName: "John" },
- orderedItems: [
- { name: "itemF", qty: 2},
- { name: "itemE", qty: 8} ]
- },
- {
- client: {
- firstName: "John",
- lastName: "Scatman" },
- orderedItems: [
- { name: "itemF", qty: 13},
- { name: "itemG", qty: 28} ]
- },
- {
- client: {
- firstName: "Johny",
- lastName: "B." },
- orderedItems: [
- { name: "itemE", qty: 5},
- { name: "itemG", qty: 3} ]
- }])
- db.stock.insertMany([{ item: "itemA", qty: 15},
- { item: "itemB", qty: 15},
- { item: "itemC", qty: 15},
- { item: "itemD", qty: 15},
- { item: "itemE", qty: 15},
- { item: "itemF", qty: 15},
- { item: "itemG", qty: 15}])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement