RolesInfo - DDL of the role

We created the role using below command. But when we try to get the role info it does not provide details of its privileges etc. How to get complete DDL of the newly create role?

> db.createRole(
...  {
...    role: "insertAndFindTransactions",
...    privileges: [
...      {
...         resource: { db: "transactions", collection: "" },
...         actions: [ "insert", "find"]
...      }
...    ],
...    roles: []
...  }
... )
{
        "role" : "insertAndFindTransactions",
        "privileges" : [
                {
                        "resource" : {
                                "db" : "transactions",
                                "collection" : ""
                        },
                        "actions" : [
                                "insert",
                                "find"
                        ]
                }
        ],
        "roles" : [ ]
}
> db.getRoles()
[
        {
                "role" : "insertAndFindTransactions",
                "db" : "admin",
                "isBuiltin" : false,
                "roles" : [ ],
                "inheritedRoles" : [ ]
        }
]

Check this link

use additional fields