feat: Improve the Noodl.Records.query typings API (#25)

This commit is contained in:
Eric Tuvesson
2024-05-24 15:49:05 +02:00
committed by GitHub
parent f8a2170f5d
commit cdeb4b1c15
3 changed files with 127 additions and 17 deletions

View File

@@ -75,12 +75,12 @@ var SetDbModelPropertiedNodeDefinition = {
_this.setError('Missing Record Id');
return;
}
var model = internal.model;
for (var i in internal.inputValues) {
model.set(i, internal.inputValues[i], { resolve: true });
const model = internal.model;
for (const key in internal.inputValues) {
model.set(key, internal.inputValues[key], { resolve: true });
}
CloudStore.forScope(_this.nodeScope.modelScope).save({
collection: internal.collectionId,
objectId: model.getId(), // Get the objectId part of the model id