{"id":1356,"date":"2020-11-06T06:38:04","date_gmt":"2020-11-06T06:38:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=1356"},"modified":"2020-11-06T06:39:50","modified_gmt":"2020-11-06T06:39:50","slug":"select-update-delete-create-alter-and-drop-table-in-mongodb","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/select-update-delete-create-alter-and-drop-table-in-mongodb\/","title":{"rendered":"Select, update, delete, create, alter, and drop a table in MongoDB in Linux Mint 20"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>MongoDB is a very popular NoSQL database. Like every other database, it also presents you with the different ways, in which you can insert data into this database and can easily manipulate it by performing certain operations on it. <a href=\"https:\/\/linuxways.net\/de\/mint\/how-to-install-mongodb-on-linux-mint-20\/\">However, before learning those operations, you must have this database installed on your system which you can conveniently do by following this helpful tutorial which provides a complete guide of installing MongoDB on Linux Mint 20.<\/a> Once you have followed this tutorial, you can easily learn to work with tables in MongoDB which we will be explaining in today\u2019s article.<\/p>\n<h2>Working with Tables in MongoDB:<\/h2>\n<p>Before starting to work with tables in MongoDB, we would like to tell you that the tables in MongoDB are in fact known as \u201cCollections\u201d. The columns or attributes of these collections are known as \u201cFields\u201d whereas the rows or records of these collections are known as \u201cDocuments\u201d. Another point to be noted over here is that you need to take special care of the syntax since any syntax errors will cause your queries to fail and the worst thing is that no detailed information about the exact error is presented on the MongoDB shell, therefore, you will have to figure it out manually which is a very complex task to accomplish. Now we will present to you different examples with the help of which you will get an idea about working with tables or collections in MongoDB while using Linux Mint 20.<\/p>\n<h3>Step # 1: Verifying that MongoDB is installed on your Linux Mint 20 System:<\/h3>\n<p>For working with anything within MongoDB, you need to have MongoDB installed on your Linux Mint 20 system. You can verify this by running the following command in your terminal:<\/p>\n<pre><strong>mongo --version<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"27\" class=\"wp-image-1357\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-190.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-190.png 369w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-190-300x22.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/strong><\/p>\n<p>Running this command will display the version of MongoDB which will indicate that it is installed on your system as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"178\" class=\"wp-image-1358\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-191.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-191.png 442w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-191-300x121.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/p>\n<h3>Step # 2: Entering the MongoDB Shell:<\/h3>\n<p>MongoDB has a dedicated shell through which we can work with MongoDB. Therefore, before creating any database and starting to work with it, we need to enter the MongoDB shell by running the following command in the terminal:<\/p>\n<pre><strong>mongo<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"26\" class=\"wp-image-1359\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-192.png\"><\/strong><\/p>\n<p>Running this command will immediately take you to the MongoDB shell as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"333\" class=\"wp-image-1360\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-193.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-193.png 645w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-193-300x155.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/p>\n<h3>Step # 3: Creating a Database:<\/h3>\n<p>Creating a database is extremely simple in MongoDB. All you have to do is to run the following command in your MongoDB shell:<\/p>\n<pre><strong>&gt; use NameOfDatabase<\/strong><\/pre>\n<p>Here, you need to replace NameOfDatabase with whatever name you want for your database. We have named our database as SampleDB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"186\" height=\"23\" class=\"wp-image-1361\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-194.png\"><\/p>\n<p>Once this command manages to create a new database, you will automatically be able to access it since the MongoDB shell will switch from its default database to your newly created database as shown in the image below. It means that now, whatever operations you will perform will be performed on your newly created database.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"220\" height=\"61\" class=\"wp-image-1362\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-195.png\"><\/p>\n<h3>Step # 4: Creating a Collection:<\/h3>\n<p>Now we will attempt to create a collection or a table within our newly created SampleDB by running the following command in our MongoDB shell:<\/p>\n<pre><strong>&gt; db.createCollection(\u201cCollectionName\u201d)<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with whatever name you want for your collection. We have named our collection as samplecollection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"45\" class=\"wp-image-1363\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-196.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-196.png 335w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-196-300x40.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/p>\n<p>If this command will create the collection successfully, then you will receive an { \u201cok\u201d : 1 } success message as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"55\" class=\"wp-image-1364\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-197.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-197.png 338w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-197-300x49.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/p>\n<p>Moreover, you can also verify if a collection has been created or not by running the following command in your MongoDB shell:<\/p>\n<pre><strong>&gt; show collections<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"161\" height=\"21\" class=\"wp-image-1365\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-198.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-198.png 161w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-198-150x21.png 150w\" sizes=\"auto, (max-width: 161px) 100vw, 161px\" \/><\/strong><\/p>\n<p>This command is used for displaying the names of all the collections that have been created within a particular database. Since in our case, we only created a single collection i.e. samplecollection, therefore, its name will be displayed on our MongoDB shell as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"165\" height=\"52\" class=\"wp-image-1366\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-199.png\"><\/p>\n<h3>Step # 5: Inserting Documents in a Collection:<\/h3>\n<p>Now we will try to insert a few records or documents into our samplecollection by running the following query in our MongoDB shell:<\/p>\n<pre><strong>&gt; db.CollectionName.insertMany([ { name:\u201dJohn\u201d, age:24, gender:\u201dMale\u201d }, { name:\u201dLeena\u201d, age:22, gender:\u201dFemale\u201d }, { name:\u201dHarry\u201d, age27, gender:\u201dMale\u201d } ]}<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with the name of your particular collection. In our example, \u201cname\u201d, \u201cage\u201d, and \u201cgender\u201d are the three fields or columns of our table or collection whereas the records or documents are enclosed within curly brackets and separated by commas. It means that we have a total of 3 records or documents in this example. However, if you want to add a single document or record, then instead of using the \u201cinsertMany\u201d command, you will use the simple \u201cinsert\u201d command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"49\" class=\"wp-image-1367\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-200.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-200.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-200-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-200-768x48.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>If this query will be executed successfully, you will get an acknowledgment message. Also, the objectIDs of the newly inserted records or documents will be returned as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"190\" class=\"wp-image-1368\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-201.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-201.png 793w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-201-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-201-768x184.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/p>\n<h3>Step # 6: Viewing the Documents within a Collection:<\/h3>\n<p>Now when we have inserted the data in our collection, we will try to view it. In SQL, we can view the data within a table by using the &#8220;SELECT&#8221; command whereas, in MongoDB, we make use of the \u201cfind\u201d command in the following manner:<\/p>\n<pre><strong>&gt; db.CollectionName.find( {} )<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with the name of your particular collection which in our case was samplecollection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"272\" height=\"28\" class=\"wp-image-1369\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-202.png\"><\/p>\n<p>Running this query will return all the documents that you have just inserted into your collection as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"106\" class=\"wp-image-1370\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-203.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-203.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-203-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-203-768x103.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>Instead of viewing all the documents, you can also look for a particular document or record within a collection by running the \u201cfind\u201d command in the following manner:<\/p>\n<pre><strong>&gt; db.CollectionName.find({name:\u201dLeena\u201d})<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"26\" class=\"wp-image-1371\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-204.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-204.png 340w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-204-300x23.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/strong><\/p>\n<p>Here, you need to replace CollectionName with the name of your particular collection. In this example, we wanted to look for the document where the name is &#8220;Leena\u201d. You can choose to search by any field or attribute such as age or gender in our case. In either of these cases, the very same document or record will be returned as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"54\" class=\"wp-image-1372\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-205.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-205.png 791w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-205-300x20.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-205-768x52.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/p>\n<h3>Step # 7: Updating a Document within a Collection:<\/h3>\n<p>After viewing the documents within a collection, we will now learn to update any particular document by making use of the \u201cupdate\u201d command in the following manner:<\/p>\n<pre><strong>&gt; db.CollectionName.update( { name:\u201dLeena\u201d}, { $set: { age:20 } } )<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with the name of your particular collection. In the records or documents that we entered previously, Leena\u2019s age was set to \u201c22\u201d. Now we have tried to change it to \u201c20\u201d by executing the query shown above.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"31\" class=\"wp-image-1373\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-206.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-206.png 561w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-206-300x17.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/p>\n<p>If this query is executed successfully i.e. our document is updated successfully, then the output shown in the image below will be displayed on your MongoDB shell:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"55\" class=\"wp-image-1374\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-207.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-207.png 565w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-207-300x29.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p>We can also verify if the age of Leena has been updated by our \u201cupdate\u201d query or not by running the following command:<\/p>\n<pre><strong>&gt; db.CollectionName.find({name:\u201dLeena})<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"29\" class=\"wp-image-1375\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-208.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-208.png 343w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-208-300x25.png 300w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/strong><\/p>\n<p>Running this command will display the document where the name is &#8220;Leena\u201d. In this document, you will be able to see that her age has been updated to \u201c20\u201d as highlighted in the image shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"54\" class=\"wp-image-1376\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-209.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-209.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-209-300x21.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-209-768x53.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<h3>Step # 8: Deleting a Document from a Collection:<\/h3>\n<p>The next operation that we will learn to perform is to delete a record or a document from a collection. This can be done by running the \u201cremove\u201d command in the following manner:<\/p>\n<pre><strong>&gt; db.CollectionName.remove( { name:\u201dHarry\u201d } )<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with the name of your particular collection. In this example, we wanted to delete the document where the name is &#8220;Harry&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"28\" class=\"wp-image-1377\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-210.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-210.png 393w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-210-300x21.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/p>\n<p>If this query is executed successfully, then the output shown in the image below will be displayed on our MongoDB shell:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"57\" class=\"wp-image-1378\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-211.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-211.png 395w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-211-300x43.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/p>\n<p>We can also verify if our specified document has been deleted or not by viewing all the documents of our collection by running the following command:<\/p>\n<pre><strong>&gt; db.CollectionName.find( {} )<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"265\" height=\"28\" class=\"wp-image-1379\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-212.png\"><\/strong><\/p>\n<p>Running this command will display all the remaining documents but the document where the name was &#8220;Harry&#8221; will no longer be displayed since it has been deleted as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"70\" class=\"wp-image-1380\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-213.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-213.png 793w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-213-300x26.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-213-768x68.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/p>\n<h3>Step # 9: Deleting a Collection:<\/h3>\n<p>Finally, we will try to delete our collection or table by executing the following query:<\/p>\n<pre><strong>&gt; db.CollectionName.drop()<\/strong><\/pre>\n<p>Here, you need to replace CollectionName with the name of the collection that you want to delete which in our case is samplecollection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"28\" class=\"wp-image-1381\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-214.png\"><\/p>\n<p>If this query is executed successfully i.e. our samplecollection is deleted successfully, then a \u201ctrue\u201d message will be displayed on our MongoDB shell as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"58\" class=\"wp-image-1382\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-215.png\"><\/p>\n<p>We can further verify if our collection has been deleted or not by displaying all the collections by running the following command:<\/p>\n<pre><strong>&gt; show collections<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"158\" height=\"25\" class=\"wp-image-1383\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-216.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-216.png 158w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-216-150x25.png 150w\" sizes=\"auto, (max-width: 158px) 100vw, 158px\" \/><\/strong><\/p>\n<p>Since we only had one collection and that has also been deleted, therefore, running the above-mentioned command will simply hand over the control back to us without displaying any output as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"156\" height=\"47\" class=\"wp-image-1384\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-217.png\"><\/p>\n<h2>Conclusion:<\/h2>\n<p>This article presented to you all the basic operations that you can perform on MongoDB tables or collections. By following the very same syntax and operations, you can even write other complex queries that can easily serve the purpose of your particular task.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: MongoDB is a very popular NoSQL database. Like every other database, it also presents you with the different ways, in which you can insert data into this&hellip;<\/p>","protected":false},"author":3,"featured_media":1385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[69,45,44],"class_list":["post-1356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-database-tables","tag-linux-mint","tag-mongodb"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1356"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1356\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1385"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}