# upserting
State Resource
This is a State Resource as provided by the tymly-core-plugin plugin.
# Purpose
Perists a document to storage
# Usage
# Example
{
"Upserting": {
"Type": "Task",
"InputPath": "$.formData",
"Resource": "module:upserting",
"ResourceConfig": {
"modelId": "buildingDna",
"setMissingPropertiesToNull": false
},
"Next": "UpsertingBuilding"
}
}
# Options
# Required properties
# modelId
This is the id of a model within the current namespace which will be used to upsert the document.
- Type:
string
# Optional properties
# setMissingPropertiesToNull
Controls whether to null out fields not provided in the input document. Defaults to false.
- Type:
boolean