{
  "synLogic": "int $ret \u003d $api($1, $2);",
  "help": "This function will execute user provided JSON query and do FIND operation.",
  "notes": "Result will be displayed which the cursor pointer is pointing from the database if it is valid.\r\n It retrieves all data if limit is 0.",
  "returns": "This api returns '0' if the JSON query is executed successfully, otherwise returns '-1'.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\"  style\u003d\"width:100%\"  \u003e 	\u003ctr\u003e 		\u003cth\u003e Argument \u003c/th\u003e     		\u003cth\u003e Description \u003c/th\u003e     	\u003c/tr\u003e 	\u003ctr\u003e    		\u003ctd\u003e query \u003c/td\u003e     		\u003ctd\u003e Query in json format \u003c/td\u003e     	\u003c/tr\u003e  	\u003ctr\u003e       		\u003ctd\u003e limit \u003c/td\u003e     		\u003ctd\u003e Add limit to fetch the data from database \u003c/td\u003e     	\u003c/tr\u003e     \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_mongodb_collection_find",
  "syntax": "int ns_mongodb_collection_find(char *query, int limit)",
  "javaSyntax": "",
  "cEx": "ns_mongodb_collection_find({\"name\":\"Puneet\"},2)",
  "javaEx": "",
  "insertStrC": "ns_mongodb_collection_find(char *query, int limit);",
  "insertStrJava": "",
  "description": "The ns_mongodb_collection_find API is used to execute user provided JSON query and do FIND operation.",
  "component":[
    {
      "id": "$1",
      "type": "TextField",
      "label": "Query",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter query",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
   {
      "id": "$2",
      "type": "TextField",
      "label": "Limit",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter limit",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647,
        "method": ""
      }
    }
  ]
}
