{
  "synLogic": "int $ret \u003d $api($1, $2);",
  "help": "This function will update user provided JSON query if the given query is right.",
  "notes": "",
  "returns": "This api returns '0' if the query is executed successfully, otherwise it 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 in which you want to update \u003c/td\u003e     	\u003c/tr\u003e  	\u003ctr\u003e       		\u003ctd\u003e updator \u003c/td\u003e     		\u003ctd\u003e provided query is updated here \u003c/td\u003e     	\u003c/tr\u003e     \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_mongodb_collection_update",
  "syntax": "int ns_mongodb_collection_update(char *query, char *updator)",
  "javaSyntax": "",
  "cEx": "ns_mongodb_collection_update({\"name\":\"Puneet\"},{\"name\":\"Puneet SIngh\"});",
  "javaEx": "",
  "insertStrC": "ns_mongodb_collection_update(char *query, char *updator);",
  "insertStrJava": "",
  "description": "The ns_mongodb_collection_update API is used to update user provided JSON query if the given query is right.",
  "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": "Updator",
      "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
      }
    }
  ]
}
