db.command('buildInfo' => 1)['version']

mongo in linux is denied admin command in all collections except admin ,
so i add a new connection.