---
# System prepended metadata

title: Transformation noSQL

---

# Transformation noSQL

```javascript=
db.SNCF.insert(
    Réservation{
        "Billet":{
            "num_billet":9585630,
            "Trajets":[
                {"place":58,"heure_depart": "03:03", "heure_arrivee" : "05:06", "arret_depart" : "Parc du chateau", "arret_arrivee" : "Paris Nord", "Train" : 2},
                {"place":12,"heure_depart":"07:08","arret_depart":"Paris Nord","arret_arrivee":"Montpellier Saint-Roch","Train":412}
            ]
        },
        "Hôtel": [
        {"adresse" : "6 rue du G. De Gaules, Nice", "nom" : "Hotel de la grande place", "nb_etoile" :"5 étoiles"},
        {"adresse" : "87 avenue de l'étoile, Paris", "nom" : "Hotel des invalides", "nb_etoile" : "3         étoiles"}
        
        ],
        "Taxi" :[{"numero":93831, "marque" : "Mercedes", "tarif" : "5e/km","tel":"06 54 56 67 78"},
        {"numero":12765,"marque":"Fiat","tarif":"12e/km","tel":"0645634318"}
        ],
        "Transports" :[
            {"numero":9373, "compagnie" : "AutoCarRoad","type" :"Bus"},
            {"numero":83710,"compagnie":"VelibLyon","type":"velo"}
        ],
        "Voyageur" : {"id" : 1, "nom" : "Dupont", "prenom":"Jean", "adresse" :"5 avenue de la paix, Paris", "num_carte" : "8752367820", "statut" : "voyageur"   
        }
    }


Train{
    "num" : 3,
    "placemax": 4,
    "classe1" : true,
    "Arrêts" :[{"jour" : "mardi","rang": "4", "horaireDepart" : "03:03", "horaireArrivee" : "03:15" }],
    "Exception" : [
        {"ajout" : true, "jour_debut" : "21/12/2000", "jour_fin" : "25/12/2000"},
        {"ajout" : false, "jour_debut" : "23/09/2003", "jour_fin" : "30/12/2003"}
    ],
}



Ligne {
    "Code" : 7,
    "Nom" : "Ligne de Compiègne",
    "Arrêts" : [
        {
        "rang": 4,
        "gare" : {"nom":"Gare d'Amiens","ville":"Amiens","adresse":"6 place Alphonse Fiquet","horaire":"GMT+1"}
        },
        
        {
        "rang":5,
        "gare":{"nom":"Gare de Creil","ville":"Creil","adresse":"8 place de la Marie-Jeanne","horaire":"GMT+1"}
        },
        
        {
        "rang":6,
        "gare":{"nom":"Gare de Chantilly-Gouvieux","adresse":"136 rue d'Orgemont","horaire":"GMT+1"}
        }
    ]
}

);
```