Description
Adds the facet to the document.
Save parameter automatically saves the document in the database. It has to be turned off when this operation is used in the context of the empty document created, about to create, before document modification, document modified events.
Operation id | Document.AddFacet |
Aliases | Document.AddFacet
|
Category | Document |
Label | Add Facet |
Requires | |
Since | |
Parameters
Signature
Inputs | document, documents |
Outputs | document, documents |
Implementation Information
JSON Definition
{
"id" : "Document.AddFacet",
"aliases" : [ "Document.AddFacet" ],
"label" : "Add Facet",
"category" : "Document",
"requires" : null,
"description" : "Adds the facet to the document. <p>Save parameter automatically saves the document in the database. It has to be turned off when this operation is used in the context of the empty document created, about to create, before document modification, document modified events.</p>",
"url" : "Document.AddFacet",
"signature" : [ "document", "document", "documents", "documents" ],
"params" : [ {
"name" : "facet",
"description" : "",
"type" : "string",
"required" : true,
"widget" : null,
"order" : 0,
"values" : [ ]
}, {
"name" : "save",
"description" : "",
"type" : "boolean",
"required" : false,
"widget" : null,
"order" : 0,
"values" : [ "true" ]
} ]
}