Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created May 1, 2020 17:00
Show Gist options
  • Save sandrabosk/4affc32c29220898bc9d83ee076c6218 to your computer and use it in GitHub Desktop.
Save sandrabosk/4affc32c29220898bc9d83ee076c6218 to your computer and use it in GitHub Desktop.
  • One potential structure (needs to be built in the Compass and saved in the database):
DB: ironhackers 
|--> collection: developers {
                 
                 {
                    name: "jack",
                    age: "34",
                    favoriteTeams: ["miami heat", "sacramento kings"],
                    favoriteMovie: {
                        title: "The Godfather", 
                        mainActors: ["Al Pacino", "Marlon Brando", "Diane Keaton"]
                    ,
                    favoriteSongs: [
                        {
                            singer: "first last name",
                            songTitle: "song title 1"
                        },
                        {
                            singer: "first last name",
                            songTitle: "song title 1"
                        }
                    ]
        
                  },
                  {
                    name: "jane",
                    age: "31",
                    favoriteTeams: ["miami heat", "sacramento kings"],
                    favoriteMovie: {
                        title: "The Godfather", 
                        mainActors: ["Al Pacino", "Marlon Brando", "Diane Keaton"]
                    ,
                    favoriteSongs: [
                        {
                            singer: "first last name",
                            songTitle: "song title 1"
                        },
                        {
                            singer: "first last name",
                            songTitle: "song title 1"
                        }
                    ]
        
                  }
           } # closes collection developers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment