title: TypeError: Property 'createRole' of object admin is not a function
body: <p>I am executing following script to create custom role in mongo db . my databse name is admin</p>
  
  <pre><code>db.createRole(
     {
       role: "updaterRole",
       privileges: [
         { resource: { cluster: true }, actions: [ "killop", "inprog" ] },
         { resource: { db: "", collection: "" }, actions: [ "createCollection" ] },
         { resource: { db: "", collection: "" }, actions: [ "createIndex" ] },
         { resource: { db: "", collection: "" }, actions: [ "insert" ] },
         { resource: { db: "", collection: "" }, actions: [ "find" ] },
         { resource: { db: "", collection: "" }, actions: [ "update" ] }
       ],
       roles: []
     }
  )
  </code></pre>
  
  <p>But i am getting following error .</p>
  
  <pre><code>TypeError: Property 'createRole' of object admin is not a function
  </code></pre>