# findingOne
State Resource
This is a State Resource as provided by the tymly-core-plugin plugin.
# Purpose
Finds a single document in a specified model that meets the specified criteria, and adds it to the tymly context
# Usage
# Example
{
"FindingOne": {
"Resource": "module:findingOne",
"ResourceConfig": {
"modelId": "namespace_safeAndWellAssessmentIndividual",
"filter": {
"where": {
"sawReportId": {
"equals": "$.sawReportId"
},
"individualReportId": {
"equals": "$.individualReportId"
}
}
}
}
}
}
# Options
# Required properties
# modelId
This is the id of a model from which a single document will be fetched.
- Type:
string
# Optional properties
# filter
Conditions which the document must meet to be returned.
- Type:
object