Reference: https://devcenter.heroku.com/articles/heroku-cli-commands
SQL to MongoDB Mapping Chart¶
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
Executables¶
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
-
Install mongoose
npm install mongoose
-
require mongoose in the
app.js
=>const mongoose = require("mongoose");
-
Connect to database with mongoose =>
mongoose.connect("mongodb://localhost/mongoose-example")
-
Create an overall schema =>
const Schema = new mongoose.Schema;
-
Create a user schema with already instantiated Schema =>
const userSchema = new mongoose.Schema({
- Bento - https://bento.io/
- Class Central - https://www.class-central.com
- Code Avengers - https://www.codeavengers.com/
- CodeCademy - https://www.codecademy.com/
- Coursera - https://www.coursera.org/
- egghead - https://egghead.io/
I hereby claim:
- I am 1000miles on github.
- I am 1000miles (https://keybase.io/1000miles) on keybase.
- I have a public key ASBs053fYNNPkfEBRd_pb2WmhhfX9Ca8BdfNuZAf_jgLQAo
To claim this, I am signing this object: