From cfd4d7985bb927fde4dd2e8dd3cd0970c1a4161c Mon Sep 17 00:00:00 2001 From: "Dr. Martin Goik" <goik@hdm-stuttgart.de> Date: Thu, 5 Nov 2020 08:05:07 +0100 Subject: [PATCH] Typo --- Doc/DbDevel/dbDevel.xml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Doc/DbDevel/dbDevel.xml b/Doc/DbDevel/dbDevel.xml index 0bc45afae..b6852345d 100644 --- a/Doc/DbDevel/dbDevel.xml +++ b/Doc/DbDevel/dbDevel.xml @@ -1633,7 +1633,45 @@ WriteResult({ "nInserted" : 1 }) <figure xml:id="fig_dbDevel_overview_mongo_features_CRUD_deleteAttribute"> <title>Deleting an attribute</title> - <programlisting language="json"/> + <informaltable border="1"> + <tr> + <th>Code</th> + + <th>Result</th> + </tr> + + <tr> + <td valign="top"><programlisting language="json">db.group.update( + {_id: ObjectId("5fa3035932b87a0c60a6ed1a")}, + + { $unset: + { + gidNumber: 42 <co + linkends="fig_dbDevel_overview_mongo_features_CRUD_deleteAttribute-1" + xml:id="fig_dbDevel_overview_mongo_features_CRUD_deleteAttribute-1-co"/> + } + } +)</programlisting></td> + + <td valign="top"><screen>db.group.find() + +[ + { + "_id": {"$oid": "5fa3035932b87a0c60a6ed1a"}, + "cname": "My users", + "gid": "users" + } +]</screen></td> + </tr> + </informaltable> + + <calloutlist role="slideExclude"> + <callout arearefs="fig_dbDevel_overview_mongo_features_CRUD_deleteAttribute-1-co" + xml:id="fig_dbDevel_overview_mongo_features_CRUD_deleteAttribute-1"> + <para>Though the attribute is to be deleted the operation + requires a dummy value for syntactical reasons.</para> + </callout> + </calloutlist> </figure> </section> -- GitLab