{"id":520,"date":"2017-08-18T17:28:56","date_gmt":"2017-08-19T00:28:56","guid":{"rendered":"https:\/\/www.kenwalger.com\/blog\/?p=520"},"modified":"2017-08-18T17:58:19","modified_gmt":"2017-08-19T00:58:19","slug":"mongodb-plugin-pycharm","status":"publish","type":"post","link":"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/","title":{"rendered":"MongoDB Plugin for PyCharm"},"content":{"rendered":"<p>There are many different options available when developing to look at and examine your <a href=\"https:\/\/www.mongodb.com\">MongoDB<\/a> collections. MongoDB&#8217;s <a href=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-compass-an-overview\/\">Compass<\/a> is a great example of a tool that allows for the viewing and interaction with a database, collection, or document. However, when developing it is often useful to have the ability to see your data inside your development environment. Let&#8217;s take a look at a useful MongoDB Plugin for PyCharm for viewing collections.<\/p>\n<h3>MongoDB Plugin<\/h3>\n<p>While I will be discussing the <a href=\"https:\/\/plugins.jetbrains.com\/plugin\/7141-mongo-plugin\">Mongo Plugin<\/a> specifically as it relates to <a href=\"https:\/\/www.jetbrains.com\/pycharm\/\">PyCharm<\/a>, the plugin itself works with the vast majority of IDEs provided by <a href=\"https:\/\/www.jetbrains.com\/\">JetBrains<\/a>. After downloading and installing the plugin we need to set a few things up. I&#8217;ll walk through setting up connections for a local installation of a MongoDB server as well as a connection to their Database as a Service, <a href=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-atlas\/\">Atlas<\/a>. For testing the connection we will want to make sure both of these servers are up and running.<\/p>\n<h4>MongoDB Plugin Settings<\/h4>\n<h6>Local Server<\/h6>\n<p>For the local server, the settings are relatively straight forward. Assuming that we are working with a server on the default port of 27107, let&#8217;s take a look at our settings.<\/p>\n<figure id=\"attachment_531\" aria-describedby=\"caption-attachment-531\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"531\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_settings_blank\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_settings_blank-e1503103697923.png?fit=480%2C325&amp;ssl=1\" data-orig-size=\"480,325\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_settings_blank\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Settings -&gt; Other Settings&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_settings_blank-e1503103697923.png?fit=840%2C569&amp;ssl=1\" class=\"wp-image-531 size-full\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_settings_blank-e1503103697923.png?resize=480%2C325&#038;ssl=1\" alt=\"MongoDB Plugin - Initial Setup\" width=\"480\" height=\"325\" \/><figcaption id=\"caption-attachment-531\" class=\"wp-caption-text\">File -&gt; Settings -&gt; Other Settings<\/figcaption><\/figure>\n<p>We see here that there is a place to input the path to our\u00a0<em>Path to <a href=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb-cli-tools\/\">Mongo Shell<\/a><\/em>. Be sure to put the location to the <code>mongo<\/code> executable and not the one for <code>mongod<\/code>.\u00a0You can hit the\u00a0<strong>test<\/strong> button next to the path name to make sure the plugin is happy with the correct file.<\/p>\n<p>We next need to add a server to use and connect with. By clicking on the <code>+<\/code> symbol we are presented with an option to configure our server connection.<\/p>\n<figure id=\"attachment_535\" aria-describedby=\"caption-attachment-535\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"535\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_set_localhost\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_localhost.png?fit=480%2C545&amp;ssl=1\" data-orig-size=\"480,545\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_set_localhost\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Localhost setup configuration.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_localhost.png?fit=480%2C545&amp;ssl=1\" class=\"size-full wp-image-535\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_localhost.png?resize=480%2C545&#038;ssl=1\" alt=\"MongoDB Plugin - Localhost setup\" width=\"480\" height=\"545\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_localhost.png?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_localhost.png?resize=264%2C300&amp;ssl=1 264w\" sizes=\"auto, (max-width: 480px) 85vw, 480px\" \/><figcaption id=\"caption-attachment-535\" class=\"wp-caption-text\">Localhost setup configuration.<\/figcaption><\/figure>\n<p>Here we see that we are able to label, or name, our connection and put in the server location in the format of\u00a0<em>host:port<\/em>. For our example, we can use <code>localhost:27017<\/code>, as displayed above. For a single server without any authentication in place, these settings will connect to the database and you can see\u00a0<strong>all<\/strong> of the databases on the server.<\/p>\n<p>What if, however, you do have some authentication in place and want to establish a connection to a specific database? Let&#8217;s examine that with a connection to an Atlas configuration.<\/p>\n<h6>Atlas Server<\/h6>\n<p>We will need our <a href=\"https:\/\/www.mongodb.com\/cloud\/atlas\/\">Atlas<\/a> connection URL that is available within our Atlas dashboard. Feel free to use your own server&#8217;s host name or IP address. For my server settings, I want to set a read preference for the Primary node and to connect to the travel collection in the database.\u00a0I also selected that I&#8217;d like it to use SSL for the connection.<\/p>\n<figure id=\"attachment_541\" aria-describedby=\"caption-attachment-541\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"541\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_set_atlas-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas-1.png?fit=480%2C545&amp;ssl=1\" data-orig-size=\"480,545\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_set_Atlas\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Connection to an Atlas database.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas-1.png?fit=480%2C545&amp;ssl=1\" class=\"size-full wp-image-541\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas-1.png?resize=480%2C545&#038;ssl=1\" alt=\"MongoDB Plugin - Atlas Connection\" width=\"480\" height=\"545\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas-1.png?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas-1.png?resize=264%2C300&amp;ssl=1 264w\" sizes=\"auto, (max-width: 480px) 85vw, 480px\" \/><figcaption id=\"caption-attachment-541\" class=\"wp-caption-text\">Connection to an Atlas database.<\/figcaption><\/figure>\n<p>Since my Atlas server does require authentication, let&#8217;s take a look at that tab.<\/p>\n<figure id=\"attachment_540\" aria-describedby=\"caption-attachment-540\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"540\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_set_atlas_auth-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas_auth-1.png?fit=480%2C545&amp;ssl=1\" data-orig-size=\"480,545\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_set_Atlas_auth\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Setting up connection Authentication&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas_auth-1.png?fit=480%2C545&amp;ssl=1\" class=\"size-full wp-image-540\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas_auth-1.png?resize=480%2C545&#038;ssl=1\" alt=\"MongoDB Plugin Authentication\" width=\"480\" height=\"545\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas_auth-1.png?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_set_Atlas_auth-1.png?resize=264%2C300&amp;ssl=1 264w\" sizes=\"auto, (max-width: 480px) 85vw, 480px\" \/><figcaption id=\"caption-attachment-540\" class=\"wp-caption-text\">Setting up connection Authentication<\/figcaption><\/figure>\n<p>We put in an appropriately established username and password along with the name of the <a href=\"https:\/\/docs.mongodb.com\/manual\/core\/authentication\/index.html\">authentication<\/a> database. In this case, I am using the admin database. For Atlas, we want to choose the <a href=\"https:\/\/docs.mongodb.com\/manual\/core\/security-scram-sha-1\/#authentication-scram-sha-1\">SCRAM-SHA-1<\/a> authorization mechanism. And then we can test\u00a0<em>this<\/em> connection. If everything is configured correctly, we should get the good news pop up.<\/p>\n<figure id=\"attachment_532\" aria-describedby=\"caption-attachment-532\" style=\"width: 220px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"532\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_add_server_connection_succesful\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_add_server_connection_succesful.png?fit=220%2C128&amp;ssl=1\" data-orig-size=\"220,128\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_add_server_connection_succesful\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Successful Connection Test.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_add_server_connection_succesful.png?fit=220%2C128&amp;ssl=1\" class=\"size-full wp-image-532\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_add_server_connection_succesful.png?resize=220%2C128&#038;ssl=1\" alt=\"MongoDB Plugin Successful Configuration\" width=\"220\" height=\"128\" \/><figcaption id=\"caption-attachment-532\" class=\"wp-caption-text\">Successful Connection Test.<\/figcaption><\/figure>\n<h4>Starting the Plugin<\/h4>\n<p>With our connections established, we can use the Mongo Explorer by navigating to\u00a0<em>View -&gt; \u00a0Tool Windows -&gt; Mongo Explorer<\/em>. It will show our configured connections and when opening the connection up we see our databases listed.<\/p>\n<figure id=\"attachment_530\" aria-describedby=\"caption-attachment-530\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"530\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/mongo_plugin_once\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/mongo_plugin_once-e1503103727858.gif?fit=480%2C270&amp;ssl=1\" data-orig-size=\"480,270\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"mongo_plugin_once\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/mongo_plugin_once-e1503103727858.gif?fit=480%2C270&amp;ssl=1\" class=\"wp-image-530 size-full\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/mongo_plugin_once-e1503103727858.gif?resize=480%2C270&#038;ssl=1\" alt=\"MongoDB Plugin Enabling\" width=\"480\" height=\"270\" \/><figcaption id=\"caption-attachment-530\" class=\"wp-caption-text\">Enabling the Plugin in PyCharm<\/figcaption><\/figure>\n<p>Upon selecting a given database we are given a list of the <a href=\"https:\/\/docs.mongodb.com\/manual\/core\/databases-and-collections\/\">collections<\/a>. We can then choose a given collection and see a list of the documents in the collection.<\/p>\n<figure id=\"attachment_542\" aria-describedby=\"caption-attachment-542\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"542\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_collection_examination\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination-e1503103745838.png?fit=480%2C286&amp;ssl=1\" data-orig-size=\"480,286\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_collection_examination\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Examining a collection with the Mongo Plugin.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination-e1503103745838.png?fit=840%2C501&amp;ssl=1\" class=\"wp-image-542 size-full\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination-e1503103745838.png?resize=480%2C286&#038;ssl=1\" alt=\"MongoDB Plugin Examination\" width=\"480\" height=\"286\" \/><figcaption id=\"caption-attachment-542\" class=\"wp-caption-text\">Examining a collection with the Mongo Plugin.<\/figcaption><\/figure>\n<h4>MongoDB Plugin ToolBar<\/h4>\n<p>If we have a look at the toolbar that appears above our collection:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"543\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/plugin_collection_examination_toolbar\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination_toolbar-e1503103763829.png?fit=480%2C286&amp;ssl=1\" data-orig-size=\"480,286\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plugin_collection_examination_toolbar\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination_toolbar-e1503103763829.png?fit=840%2C501&amp;ssl=1\" class=\"aligncenter wp-image-543 size-full\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/plugin_collection_examination_toolbar-e1503103763829.png?resize=480%2C286&#038;ssl=1\" alt=\"MongoDB Plugin Toolbar callout\" width=\"480\" height=\"286\" \/><\/p>\n<p>There are some great features in there.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"544\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/attachment\/toolbar\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/toolbar-e1503103779454.png?fit=480%2C66&amp;ssl=1\" data-orig-size=\"480,66\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"toolbar\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/toolbar-e1503103779454.png?fit=840%2C116&amp;ssl=1\" class=\"aligncenter wp-image-544 size-full\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/toolbar-e1503103779454.png?resize=480%2C66&#038;ssl=1\" alt=\"MongoDB Plugin Toolbar\" width=\"480\" height=\"66\" \/><\/p>\n<p>We see that we have a <code>find<\/code> option, an option to toggle the aggregation mode, and the ability to add and edit documents directly from PyCharm. We are given options to run queries with\u00a0<em>Filter<\/em>,\u00a0<em>Projection<\/em>, and\u00a0<em>Sort<\/em> parameters as well. \u00a0A group of very useful tools included with this plugin.<\/p>\n<h3>Wrap Up<\/h3>\n<p>With successfully configured connections to MongoDB servers, we can now utilize the Mongo Plugin to see what our data looks like as we develop. I personally find this to be a\u00a0<strong>huge<\/strong> benefit and time saver when developing. If you use a JetBrains IDE for your development, I would highly encourage you to have a look at this very useful plugin.<\/p>\n<p>There are several MongoDB specific terms in this post. I created a <a href=\"https:\/\/www.echoskillstore.com\/MongoDB-Dictionary\/45103\">MongoDB Dictionary<\/a> skill for the <a href=\"https:\/\/www.amazon.com\/gp\/product\/B01DFKC2SO\/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B01DFKC2SO&amp;linkCode=as2&amp;tag=kenwalgersite-20&amp;linkId=f9e513223de2525a72b95cf9561db55b\" rel=\"noopener noreferrer\">Amazon Echo<\/a>\u00a0line of products. Check it out and you can say &#8220;Alexa, ask MongoDB what is a document?&#8221; and get a helpful response.<\/p>\n<hr \/>\n<p><em>Follow me on Twitter <a href=\"https:\/\/www.twitter.com\/kenwalger\">@kenwalger<\/a> to get the latest updates on my postings.<\/em><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520&#038;t=MongoDB%20Plugin%20for%20PyCharm&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520&#038;p&#091;images&#093;&#091;0&#093;=https%3A%2F%2Fi0.wp.com%2Fwww.kenwalger.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Ffeature-1-e1502998623242.png%3Ffit%3D125%252C125%26ssl%3D1&#038;p&#091;title&#093;=MongoDB%20Plugin%20for%20PyCharm\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520&#038;text=Hey%20check%20this%20out\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520&#038;title=MongoDB%20Plugin%20for%20PyCharm\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/reddit.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520&#038;title=MongoDB%20Plugin%20for%20PyCharm\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=MongoDB%20Plugin%20for%20PyCharm&#038;body=Hey%20check%20this%20out:%20https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F520\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png?resize=48%2C48&#038;ssl=1\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>There are many different options available when developing to look at and examine your MongoDB collections. MongoDB&#8217;s Compass is a great example of a tool that allows for the viewing and interaction with a database, collection, or document. However, when developing it is often useful to have the ability to see your data inside your &hellip; <a href=\"https:\/\/www.kenwalger.com\/blog\/nosql\/mongodb\/mongodb-plugin-pycharm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MongoDB Plugin for PyCharm&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":525,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pmpro_default_level":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"yst_prominent_words":[89,774,775,771,117,780,253,772,104,764,756,765,776,779,87,760,759,708,102,763],"class_list":["post-520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb","pmpro-has-access"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/08\/feature-1-e1502998623242.png?fit=125%2C125&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8lx70-8o","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":7,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":547,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/520\/revisions\/547"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/media\/525"}],"wp:attachment":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/media?parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/categories?post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/tags?post=520"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}