{"id":219543,"date":"2020-11-26T11:18:01","date_gmt":"2020-11-26T03:18:01","guid":{"rendered":"http:\/\/4563.org\/?p=219543"},"modified":"2020-11-26T11:18:01","modified_gmt":"2020-11-26T03:18:01","slug":"%e6%9c%89%e7%94%a8-datagrip-%e8%bf%9e%e6%8e%a5-mongodb-%e7%9a%84%e5%90%97%ef%bc%8c%e6%88%96%e8%80%85%e6%9c%89%e4%bb%80%e4%b9%88%e5%85%b6%e4%bb%96%e5%85%8d%e8%b4%b9%e7%9a%84-mongodb-%e5%ae%a2%e6%88%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=219543","title":{"rendered":"\u6709\u7528 datagrip \u8fde\u63a5 mongodb \u7684\u5417\uff0c\u6216\u8005\u6709\u4ec0\u4e48\u5176\u4ed6\u514d\u8d39\u7684 mongodb \u5ba2\u6237\u7aef"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u7528 datagrip \u8fde\u63a5 mongodb \u7684\u5417\uff0c\u6216\u8005\u6709\u4ec0\u4e48\u5176\u4ed6\u514d\u8d39\u7684 mongodb \u5ba2\u6237\u7aef               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7528 datagrip \u8fde\u63a5 mongodb<\/p>\n<pre><code>use admin show collections db.system.version.find({}) db.system.users.find({}) <\/code><\/pre>\n<p>show collections \u53ef\u4ee5\u663e\u793a system.version \u548c system.users\uff0c\u4f46\u662f\u540e\u9762 db.system.version.find({})\u6267\u884c\u62a5\u9519<\/p>\n<pre><code>java.lang.Exception: TypeError: Cannot read property 'find' of undefined TypeError: Cannot read property 'find' of undefined at user_script:1:1 at ShellEvaluator.&lt;anonymous&gt; (all-standalone.js:86562:36) at step (all-standalone.js:86495: ... <\/code><\/pre>\n<p>\u548b\u529e\uff0c\u6709\u6ca1\u6709\u5176\u4ed6\u7684\u514d\u8d39\u7684 mongodb \u5ba2\u6237\u7aef\u5462\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4380196\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : statement <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u80fd\u67e5\u8be2 \u7f16\u8f91\u529f\u80fd\u90fd\u6ca1\u6709\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4380197\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             db.getCollection(&#8216;system.version&#8217;).find()                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4380198\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cloud107202 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Robo 3T                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4380199\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hackerang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             tableplus                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u7528 datagrip \u8fde\u63a5 mo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/219543"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219543"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/219543\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219543"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}