- If not already installed, install NodeJS
- Download the latest version of MongoBrowser HERE
- Unzip and run
start.cmd
(windows only)
MongoBrowser query definition is a Javascript object literal in this form:
property1: 'value1',
property2: true,
property3: { other: 'value' }
The curently supported properties are:
- url: a MongoDB connection string, see this MongoDB doc
- coll: The collection to query
- filters: Query filter object, see this MongoDB doc
- fields: The grid column configuration and layout, using ExtJS specific layout information. See ExtJS Grid doc and ExtJS Grid Column doc
- sort: Query sort object/array, see this MongoDB doc
url: 'mongodb://localhost:27017/default',
coll: 'zips',
filter: {},
fields: [
'fieldName',
{ header: 'City', dataIndex: 'city' },
{ header: 'Zip code', dataIndex: 'zip', flex: 1 }
],
sort: ['zip', 'city']
url: 'mongodb://username:password@server1:27017,server2:27017,server3:27017/database?replicaSet=ReplicaSetName',
coll: 'logs',
filter: { application: 'AppName', environment: 'dev' },
fields: [
{ header: 'Date/Time', dataIndex: 'timestamp', xtype:'datecolumn', format: 'Y-m-d H:i:s:u', width: 150 },
{ header: 'Level', dataIndex: 'level', width: 50 },
{ header: 'TID', dataIndex: 'thread', width: 30 },
{ header: 'Logger', dataIndex: 'logger' },
{ header: 'Message', dataIndex: 'message', flex: 1 },
{ header: 'Exception', dataIndex: 'exception' }
],
sort: { timestamp: -1 }
See license file