diff --git a/Doc/DbDevel/dbDevel.xml b/Doc/DbDevel/dbDevel.xml index 0bc45afae1a1f24a5e49d3060bf081fc4ed82f9d..b6852345d03bbbb3a74ffd51e87462671cf20bc4 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>