setRelation abstract method

Future<int?> setRelation(
  1. String parentObjectId,
  2. String relationColumnName, {
  3. List<String>? childrenObjectIds,
  4. String? whereClause,
})

The API request has 2 options:

  1. Must explicitly specify child objects to set to the relation by referring to their identifiers.
  2. Child objects are referenced implicitly through the whereClause clause, which defines the condition for selecting the object.

At least 1 optional parameter must be defined. If 2 optional parameters are defined, 1 option is preferred. The API returns the number of objects the operation sets to the relations.

Implementation

Future<int?> setRelation(String parentObjectId, String relationColumnName,
    {List<String>? childrenObjectIds, String? whereClause});