List all the database collections in MongoDB. By default 20 collections are included, will need to be an enterprise user to get more.
https://localhost:3000/hello/databseMongoApi/ITSoMylvDRFkScXt/list_collection
Update documents in database using ID
https://localhost:3000/hello/databseMongoApi/ITSoMylvDRFkScXt/update_document
– Params :
Object | Description |
---|---|
collection_name |
[Required] Name of document you want to search in |
identifier |
[Required] Field name by which you want to update the document. |
identifier_value |
[Required] Field value by which you want to update the document. |
– Body data format example:
{
"name": "Nocode",
"email": "nocode@nocode,com",
"time": "1348853312"
}
List of documents in collection
https://localhost:3000/hello/databseMongoApi/ITSoMylvDRFkScXt/list_document
– Params:
Object | Description |
---|---|
collection_name |
[Required] Name of collection you want to search in. |
projection |
[Optional] Fields to include in search result, separated by comma (,) |
pagination_next_index |
[Optional] Index to start the pagination from, for eg: If 10 record is being shown then your next index will be from 10 |
sort_by |
[Optional] Fields separated by comma (,) |
sort_order |
[Optional] values accepted are asc and desc |
limit |
[Optional] No. of rows to be retuned, by default 10, will need to be enterprise to get more. |
Search in a collection
https://localhost:3000/hello/databseMongoApi/ITSoMylvDRFkScXt/search_rows
– Params:
Object | Description |
---|---|
collection_name |
[Required] Name of collection you want to search in. |
search_string |
[Required] String to search |
search_field |
[Required] Field name to search in |
projection |
[Optional] Fields to include in search result, separated by comma (,)/td> |
pagination_next_index |
[Optional] Index to start the pagination from, for eg: if 10 record is being shown then your next index will be from 10 |
sort_by |
[Optional] Fields separated by comma (,) |
sort_order |
[Optional] values accepted are asc and desc |
limit |
[Optional] No. of rows to be returned, by default 20, will need to be enterprise to get more. |