You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[taskObject addUpsertForReferenceField:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}]
463
+
[taskObject addUpsertForReference:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}]
464
464
465
465
//Swift
466
466
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
467
467
var taskClass:BuiltClass = builtApplication.classWithUID("task")
468
468
var taskObject:BuiltObject = taskClass.object()
469
-
taskObject.addUpsertForReferenceField("project", condition:["name":"Super Project #41!"], replaceWith:@{"description":"This is a very cool project"})
469
+
taskObject.addUpsertForReference("project", condition:["name":"Super Project #41!"], replaceWith:@{"description":"This is a very cool project"})
470
470
471
471
472
-
@param referenceField Reference uid on which UPSERT is to be performed
472
+
@param referenceField Reference field uid on which UPSERT has to be performed
473
473
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
474
474
@param replaceDictionary New key value pairs for the fields inside the referenced object
[taskObject addUpsertForMultipleReferenceField:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}];
486
+
[taskObject addUpsertForReferences:@"project" condition:@{@"name":@"Super Project #41!"} replaceWith:@{@"description":@"This is a very cool project"}];
487
487
488
488
//Swift
489
489
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
490
490
var taskClass:BuiltClass = builtApplication.classWithUID("task")
491
491
var taskObject:BuiltObject = taskClass.object()
492
-
taskObject.addUpsertForMultipleReferenceField("project", condition:["name":"Super Project #41!"], replaceWith:["description":"This is a very cool project"])
492
+
taskObject.addUpsertForReferences("project", condition:["name":"Super Project #41!"], replaceWith:["description":"This is a very cool project"])
493
493
494
494
495
-
@param referenceField Reference uid on which UPSERT is to be performed
495
+
@param referenceField Reference field uid (Which is marked as multiple) on which UPSERT has to be performed
496
496
@param conditionDictionary A check will be performed, whether any object has the key value pair(s) supplied in the dictionary in the reference field
497
497
@param replaceDictionary New key value pairs for the fields inside the referenced object
0 commit comments