db.(nama_collection).insert({“nama_feild”:”IsiFleid:})
//Insert artinya memasukkan data kedalam collection
untuk melihat hasil dari inputan kita , dengan perintah db.nama_colecction.find().pretty()
Collection HP
Collection FILM
Collection Keluarga
Dengan Code Sebagai Berikut
Microsoft Windows [Version 10.0.17763.1098]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\ASUS>mongo
MongoDB shell version v4.2.3
connecting to:
mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("bdfa9a81-247e-4f40-a815-ff26ee00b831") }
MongoDB server version: 4.2.3
Server has startup warnings:
2020-03-23T11:00:50.885+0800 I CONTROL [initandlisten]
2020-03-23T11:00:50.885+0800 I CONTROL [initandlisten] ** WARNING: Access
control is not enabled for the database.
2020-03-23T11:00:50.885+0800 I CONTROL [initandlisten] ** Read and write
access to data and configuration is unrestricted.
2020-03-23T11:00:50.886+0800 I CONTROL [initandlisten]
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and
display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).
The monitoring data will be available on a MongoDB website with a unique URL
accessible to you
and anyone you share the URL with. MongoDB may use this information to make
product
improvements and to suggest MongoDB products and deployment options to you.