Skip to content

Instantly share code, notes, and snippets.

@gharriso
Created February 15, 2018 00:23
Show Gist options
  • Save gharriso/2f5c531bac8efbce888d9e0ac6eeaab7 to your computer and use it in GitHub Desktop.
Save gharriso/2f5c531bac8efbce888d9e0ac6eeaab7 to your computer and use it in GitHub Desktop.
dbKoda>db.getSiblingDB("OrderExample").customers.findOne();
{
"_id" : 3,
"first_name" : "Danyette",
"last_name" : "Flahy",
"email" : "dflahy2@networksolutions.com",
"gender" : "Female",
"Street" : "70845 Sullivan Center",
"City" : "Torrance",
"State" : "CA",
"ZIP" : "90505",
"SSN" : "493-37-8372",
"Phone" : "310-929-8282",
"Company" : "Talane",
"DOB" : ISODate("1967-09-28T04:42:22Z")
}
dbKoda>db.getSiblingDB("OrderExample").orders.findOne();
{
"_id" : 1,
"orderDate" : ISODate("2017-03-09T16:30:16.415Z"),
"orderStatus" : 0,
"customerId" : 3
}
dbKoda>db.getSiblingDB("OrderExample").lineitems.findOne();
{
"_id" : ObjectId("5a7935f97e9e82f6c6e77c2b"),
"orderId" : 1,
"prodId" : 158,
"itemCount" : 48
}
dbKoda>db.getSiblingDB("OrderExample").products.findOne();
{
"_id" : 1,
"productName" : "Cup - 8oz Coffee Perforated",
"price" : 56.92,
"priceDate" : ISODate("2017-07-03T06:42:37Z"),
"color" : "Turquoise",
"Image" : "http://dummyimage.com/122x225.jpg/cc0000/ffffff"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment