{"id":1902,"date":"2025-09-04T05:37:08","date_gmt":"2025-09-04T05:37:08","guid":{"rendered":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902"},"modified":"2025-09-10T08:47:29","modified_gmt":"2025-09-10T08:47:29","slug":"mongodb","status":"publish","type":"page","link":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902","title":{"rendered":"MongoDB"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"276\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-1024x276.png\" alt=\"\" class=\"wp-image-1922\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-1024x276.png 1024w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-300x81.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-768x207.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-150x40.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-1536x414.png 1536w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-600x162.png 600w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>MongoDB  &#8211;  dokumendip\u00f5hine andmebaasihalduss\u00fcsteem, mis ei vaja tabeli skeemi kirjeldust.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Praktiline osa<\/h4>\n\n\n\n<p>Loome andmebaas<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"259\" height=\"98\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/490CA134-1B9B-4A16-95F3-A7FEBFD90C9F.png\" alt=\"\" class=\"wp-image-1904\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/490CA134-1B9B-4A16-95F3-A7FEBFD90C9F.png 259w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/490CA134-1B9B-4A16-95F3-A7FEBFD90C9F-150x57.png 150w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/figure>\n\n\n\n<p>Lisame andmed (<strong>insert<\/strong>)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"454\" height=\"382\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/9D6A6602-EFB4-4D4F-9922-8D36306AE5A8.png\" alt=\"\" class=\"wp-image-1906\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/9D6A6602-EFB4-4D4F-9922-8D36306AE5A8.png 454w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/9D6A6602-EFB4-4D4F-9922-8D36306AE5A8-300x252.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/9D6A6602-EFB4-4D4F-9922-8D36306AE5A8-150x126.png 150w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"224\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/C2CE3D0F-C9FC-4E4A-9EE9-6C2FA7C215CF.png\" alt=\"\" class=\"wp-image-1907\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/C2CE3D0F-C9FC-4E4A-9EE9-6C2FA7C215CF.png 579w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/C2CE3D0F-C9FC-4E4A-9EE9-6C2FA7C215CF-300x116.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/C2CE3D0F-C9FC-4E4A-9EE9-6C2FA7C215CF-150x58.png 150w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/figure>\n\n\n\n<p>Vaatame k\u00f5ik mis on kollektsioonis <strong>(find)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"164\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/A877BDF4-33CB-4B6C-88E9-59FFE956CE82.png\" alt=\"\" class=\"wp-image-1908\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/A877BDF4-33CB-4B6C-88E9-59FFE956CE82.png 415w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/A877BDF4-33CB-4B6C-88E9-59FFE956CE82-300x119.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/A877BDF4-33CB-4B6C-88E9-59FFE956CE82-150x59.png 150w\" sizes=\"(max-width: 415px) 100vw, 415px\" \/><\/figure>\n\n\n\n<p>Uuendame andmed <strong>(update)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"433\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2ECB875E-1AC0-48E5-976D-4B0530C6A7A6.png\" alt=\"\" class=\"wp-image-1909\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2ECB875E-1AC0-48E5-976D-4B0530C6A7A6.png 750w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2ECB875E-1AC0-48E5-976D-4B0530C6A7A6-300x173.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2ECB875E-1AC0-48E5-976D-4B0530C6A7A6-150x87.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2ECB875E-1AC0-48E5-976D-4B0530C6A7A6-600x346.png 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p>Kustutamine <strong>(delete)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"530\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/F572A391-4588-48E9-A2A6-752A50A20C78.png\" alt=\"\" class=\"wp-image-1910\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/F572A391-4588-48E9-A2A6-752A50A20C78.png 566w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/F572A391-4588-48E9-A2A6-752A50A20C78-300x281.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/F572A391-4588-48E9-A2A6-752A50A20C78-150x140.png 150w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<p>Teeme 2 tegevuse <strong>(BulkWrite)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"720\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5.png\" alt=\"\" class=\"wp-image-1911\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5.png 963w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5-300x224.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5-768x574.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5-150x112.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/E630EA19-F271-43AE-B586-4DC870F7D9A5-600x449.png 600w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"794\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-1024x794.png\" alt=\"\" class=\"wp-image-1912\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-1024x794.png 1024w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-300x233.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-768x596.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-150x116.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655-600x465.png 600w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6724FF0E-4C3F-4B2E-AADD-5A8ED05E6655.png 1048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"405\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/B2EED95B-C22D-40BA-ACD2-66AE79D3826F.png\" alt=\"\" class=\"wp-image-1913\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/B2EED95B-C22D-40BA-ACD2-66AE79D3826F.png 569w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/B2EED95B-C22D-40BA-ACD2-66AE79D3826F-300x214.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/B2EED95B-C22D-40BA-ACD2-66AE79D3826F-150x107.png 150w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p><strong>MongoDB \u00fchendamine <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"757\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA.png\" alt=\"\" class=\"wp-image-1914\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA.png 895w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA-300x254.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA-768x650.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA-150x127.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/4003C988-9F25-4790-ADEC-EDBCA09DF2AA-600x507.png 600w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"809\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D.png\" alt=\"\" class=\"wp-image-1915\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D.png 931w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D-300x261.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D-768x667.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D-150x130.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/ED8CB937-E467-495A-B945-B6DF042FAF0D-600x521.png 600w\" sizes=\"(max-width: 931px) 100vw, 931px\" \/><\/figure>\n\n\n\n<p><strong>Veebileht<\/strong> (kasutasin nodejs + Express)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-1024x509.png\" alt=\"\" class=\"wp-image-1924\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-1024x509.png 1024w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-300x149.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-768x382.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-150x75.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-1536x764.png 1536w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F-600x298.png 600w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6C801EA5-B3B1-487E-AE1C-E10952689B7F.png 1542w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>const express = require(\"express\");\nconst { MongoClient, ObjectId } = require(\"mongodb\");\n\nconst app = express();\nconst port = 3000;\n\nconst client = new MongoClient(\"mongodb+srv:\/\/admin:123@cluster0.zdi1yox.mongodb.net\/Masha?retryWrites=true&amp;w=majority&amp;appName=Cluster0\");\n\napp.use(express.urlencoded({ extended: true }));\n\napp.get(\"\/\", async (req, res) =&gt; {\n    try {\n        await client.connect();\n        const db = client.db(\"Masha\");\n        const users = db.collection(\"users\");\n\n        const allUsers = await users.find().toArray();\n\n        let html = `\n        &lt;html&gt;\n        &lt;head&gt;\n            &lt;title&gt;Users&lt;\/title&gt;\n            &lt;style&gt;\n                body {\n                    font-family: Arial, sans-serif;\n                    background: #f4f4f9;\n                    margin: 0;\n                    padding: 20px;\n                }\n                h1 {\n                    text-align: center;\n                    color: #333;\n                }\n                ul {\n                    list-style: none;\n                    padding: 0;\n                    max-width: 500px;\n                    margin: 20px auto;\n                }\n                li {\n                    background: #fff;\n                    margin: 10px 0;\n                    padding: 12px 18px;\n                    border-radius: 8px;\n                    box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n                    font-size: 16px;\n                    color: #444;\n                    display: flex;\n                    justify-content: space-between;\n                    align-items: center;\n                }\n                button {\n                    background: #e74c3c;\n                    color: #fff;\n                    border: none;\n                    padding: 8px 12px;\n                    border-radius: 6px;\n                    cursor: pointer;\n                    font-size: 14px;\n                }\n                button:hover {\n                    background: #c0392b;\n                }\n            &lt;\/style&gt;\n        &lt;\/head&gt;\n        &lt;body&gt;\n            &lt;h1&gt;Mangodb nimekiri&lt;\/h1&gt;\n            &lt;ul&gt;`;\n\n        allUsers.forEach(u =&gt; {\n            html += `\n                &lt;li&gt;\n                    &lt;span&gt;&lt;b&gt;${u.name}&lt;\/b&gt; \u2014 ${u.age}&lt;\/span&gt;\n                    &lt;form action=\"\/delete\/${u._id}\" method=\"POST\" style=\"margin:0;\"&gt;\n                        &lt;button type=\"submit\"&gt;kustutama&lt;\/button&gt;\n                    &lt;\/form&gt;\n                &lt;\/li&gt;`;\n        });\n\n        html += `&lt;\/ul&gt;\n        &lt;\/body&gt;\n        &lt;\/html&gt;`;\n\n        res.send(html);\n    } catch (e) {\n        console.error(\"Error:\", e);\n        res.status(500).send(\"Server error\");\n    }\n});\n\n\napp.post(\"\/delete\/:id\", async (req, res) =&gt; {\n    try {\n        await client.connect();\n        const db = client.db(\"Masha\");\n        const users = db.collection(\"users\");\n\n        await users.deleteOne({ _id: new ObjectId(req.params.id) });\n\n        res.redirect(\"\/\");\n    } catch (e) {\n        console.error(\"Error:\", e);\n        res.status(500).send(\"Delete error\");\n    }\n});\n\napp.listen(port, () =&gt; {\n    console.log(`Server running at http:\/\/localhost:${port}`);\n});\n<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center\"><strong>Zone<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/mongodb.marijagorbunova23.thkit.ee\/\">Minu t\u00f6\u00f6 zone&#8217;is<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"398\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-1024x398.png\" alt=\"\" class=\"wp-image-1933\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-1024x398.png 1024w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-300x117.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-768x298.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-150x58.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59-600x233.png 600w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/2B5DA73D-6F23-40A6-B7DA-9858C3C8AB59.png 1405w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u00dchenduse loomiseks kasutasin SSH-d ja selle kasutamiseks l\u00f5in v\u00f5tme ning lisasin selle zone&#8217;i<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"445\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-1024x445.png\" alt=\"\" class=\"wp-image-1941\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-1024x445.png 1024w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-300x130.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-768x334.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-150x65.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52-600x261.png 600w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/629A2618-58DE-4013-9AB6-112682B0EF52.png 1028w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"49\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/68E8618B-E8B0-4F54-973B-96AE0A9F7199.png\" alt=\"\" class=\"wp-image-1936\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/68E8618B-E8B0-4F54-973B-96AE0A9F7199.png 538w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/68E8618B-E8B0-4F54-973B-96AE0A9F7199-300x27.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/68E8618B-E8B0-4F54-973B-96AE0A9F7199-150x14.png 150w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"74\" src=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D.png\" alt=\"\" class=\"wp-image-1939\" srcset=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D.png 1002w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D-300x22.png 300w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D-768x57.png 768w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D-150x11.png 150w, https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/6A1BCD3D-C38B-4D47-8CBA-2C7316E1560D-600x44.png 600w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MongoDB &#8211; dokumendip\u00f5hine andmebaasihalduss\u00fcsteem, mis ei vaja tabeli skeemi kirjeldust. Praktiline osa Loome andmebaas Lisame andmed (insert) Vaatame k\u00f5ik mis on kollektsioonis (find) Uuendame andmed (update) Kustutamine (delete) Teeme 2 tegevuse (BulkWrite) MongoDB \u00fchendamine Veebileht (kasutasin nodejs + Express) Zone Minu t\u00f6\u00f6 zone&#8217;is \u00dchenduse loomiseks kasutasin SSH-d ja selle kasutamiseks l\u00f5in v\u00f5tme ning lisasin selle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1902","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MongoDB - Marija Gorbunova portfoolio TARpv23<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902\" \/>\n<meta property=\"og:locale\" content=\"et_EE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB - Marija Gorbunova portfoolio TARpv23\" \/>\n<meta property=\"og:description\" content=\"MongoDB &#8211; dokumendip\u00f5hine andmebaasihalduss\u00fcsteem, mis ei vaja tabeli skeemi kirjeldust. Praktiline osa Loome andmebaas Lisame andmed (insert) Vaatame k\u00f5ik mis on kollektsioonis (find) Uuendame andmed (update) Kustutamine (delete) Teeme 2 tegevuse (BulkWrite) MongoDB \u00fchendamine Veebileht (kasutasin nodejs + Express) Zone Minu t\u00f6\u00f6 zone&#8217;is \u00dchenduse loomiseks kasutasin SSH-d ja selle kasutamiseks l\u00f5in v\u00f5tme ning lisasin selle [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902\" \/>\n<meta property=\"og:site_name\" content=\"Marija Gorbunova portfoolio TARpv23\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-10T08:47:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"518\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902\",\"url\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902\",\"name\":\"MongoDB - Marija Gorbunova portfoolio TARpv23\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/image1-3525695-1024x276.png\",\"datePublished\":\"2025-09-04T05:37:08+00:00\",\"dateModified\":\"2025-09-10T08:47:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902#breadcrumb\"},\"inLanguage\":\"et\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902#primaryimage\",\"url\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/image1-3525695.png\",\"contentUrl\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/image1-3525695.png\",\"width\":1920,\"height\":518},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?page_id=1902#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/\",\"name\":\"Marija Gorbunova portfoolio TARpv23\",\"description\":\"J&auml;rgmine WordPress veebileht\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/marijagorbunova23.thkit.ee\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"et\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB - Marija Gorbunova portfoolio TARpv23","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902","og_locale":"et_EE","og_type":"article","og_title":"MongoDB - Marija Gorbunova portfoolio TARpv23","og_description":"MongoDB &#8211; dokumendip\u00f5hine andmebaasihalduss\u00fcsteem, mis ei vaja tabeli skeemi kirjeldust. Praktiline osa Loome andmebaas Lisame andmed (insert) Vaatame k\u00f5ik mis on kollektsioonis (find) Uuendame andmed (update) Kustutamine (delete) Teeme 2 tegevuse (BulkWrite) MongoDB \u00fchendamine Veebileht (kasutasin nodejs + Express) Zone Minu t\u00f6\u00f6 zone&#8217;is \u00dchenduse loomiseks kasutasin SSH-d ja selle kasutamiseks l\u00f5in v\u00f5tme ning lisasin selle [&hellip;]","og_url":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902","og_site_name":"Marija Gorbunova portfoolio TARpv23","article_modified_time":"2025-09-10T08:47:29+00:00","og_image":[{"width":1920,"height":518,"url":"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902","url":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902","name":"MongoDB - Marija Gorbunova portfoolio TARpv23","isPartOf":{"@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902#primaryimage"},"image":{"@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902#primaryimage"},"thumbnailUrl":"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695-1024x276.png","datePublished":"2025-09-04T05:37:08+00:00","dateModified":"2025-09-10T08:47:29+00:00","breadcrumb":{"@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902#breadcrumb"},"inLanguage":"et","potentialAction":[{"@type":"ReadAction","target":["https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902"]}]},{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902#primaryimage","url":"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695.png","contentUrl":"https:\/\/marijagorbunova23.thkit.ee\/wp\/wp-content\/uploads\/2025\/09\/image1-3525695.png","width":1920,"height":518},{"@type":"BreadcrumbList","@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?page_id=1902#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/marijagorbunova23.thkit.ee\/wp\/"},{"@type":"ListItem","position":2,"name":"MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/marijagorbunova23.thkit.ee\/wp\/#website","url":"https:\/\/marijagorbunova23.thkit.ee\/wp\/","name":"Marija Gorbunova portfoolio TARpv23","description":"J&auml;rgmine WordPress veebileht","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/marijagorbunova23.thkit.ee\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"et"}]}},"_links":{"self":[{"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1902"}],"version-history":[{"count":12,"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/1902\/revisions"}],"predecessor-version":[{"id":1942,"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/1902\/revisions\/1942"}],"wp:attachment":[{"href":"https:\/\/marijagorbunova23.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}