MongoDB Explorer

Explore a MongoDB document or collection sample and infer its field schema and types.

Aapke MongoDB documents locally aapke browser mein parse aur analyze hote hain; jo aap paste karte hain woh aapke device se bahar nahi jaata ya kisi server ko upload nahi hota.

Is sample se TypeScript types chahiye? JSON to TypeScript try karein.

MongoDB Explorer ke baare mein

Yeh mongodb schema explorer ek single MongoDB document ya documents ka ek array JSON ke roop mein leta hai aur aapke liye underlying field schema infer karta hai. Compass, mongosh, ya ek application log se ek sample paste karein aur yeh har document walk karta hai, field paths ki ek flat list banata hai (nested objects aur array-of-object elements sahit), har ek ko ek loose BSON-ish type jaise int, double, string, bool, object, array, ya null se label karta hai, aur dikhata hai ki sample ke kitne documents mein har field hai. Yeh un backend developers, data engineers aur QA testers ke liye bana hai jinhe ek collection ka shape samajhna, optional ya inconsistent fields spot karna, aur ek schema jaldi document karna hai. Sab kuch locally aapke browser mein chalta hai, isliye jo documents aap paste karte hain woh kabhi aapke device se bahar nahi jaate aur kisi server ko kuch upload nahi hota.

Features

MongoDB Explorer kaise use karein

  1. Ek MongoDB document ya documents ka ek array JSON ke roop mein input box mein paste karein.
  2. Right par inferred schema table padhein, field paths, types, aur coverage ke saath.
  3. Optional ya sparse fields dhoondhne ke liye har field ke paas present/total count check karein.
  4. Deep structure dekhne ke liye nested paths aur array fields expand karein.
  5. Sample share karne ke liye normalized JSON copy ya download karein.

Example

Input

[
  { "_id": 1, "name": "Ada", "age": 36, "roles": ["admin"] },
  { "_id": 2, "name": "Linus", "active": true, "address": { "city": "Helsinki" } }
]

Output

_id        int        2/2
active     bool       1/2
address    object     1/2
address.city string   1/2
age        int        1/2
name       string     2/2
roles      array      1/2

Do documents field paths, types, aur per-field coverage mein infer hue.

Common errors aur troubleshooting

Aksar pooche jaane wale sawaal

MongoDB schema explorer kya hai?
Yeh ek in-browser tool hai jo ek MongoDB document ya documents ka ek sample array JSON ke roop mein leta hai aur schema infer karta hai: har field path, har ek ke liye ek BSON-ish type, aur sample ke kitne documents mein woh field hai.
Yeh field types kaise infer karta hai?
Yeh har value inspect karta hai aur ek loose BSON-ish label assign karta hai: integers int bante hain, non-integers double bante hain, plus string, bool, object, array, aur null. Jab documents disagree karte hain, field har type jo usne dekha use pipe se joda hua dikhata hai.
Kya yeh nested objects aur arrays handle karta hai?
Haan. Nested objects address.city jaise dotted paths produce karte hain, aur objects ke arrays unke pehle element ke through ek path[].field notation ka use karke explore hote hain.
Har field ke paas count ka kya matlab hai?
Yeh field ka coverage hai, present/total ke roop mein dikhaya gaya, matlab aapke paste kiye sample ke kitne documents mein woh field hai. Total se kam value ek optional ya sparse field flag karti hai.
Kya main mongosh ya Compass se extended JSON paste kar sakta hoon?
Standard JSON paste karein. Pehle ObjectId(), ISODate() aur NumberLong() jaise constructors ko plain values se replace karein, varna JSON parsing fail ho jayegi.
Kya is MongoDB schema explorer ka use karte waqt mera data safe hai?
Haan. Explorer poori tarah aapke browser mein chalta hai, isliye jo documents aap paste karte hain woh kabhi aapke device se bahar nahi jaate aur kisi server ko kuch upload nahi hota.

Related tools

Saare ArrayKit tools