addRelation method

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

Implementation

Future<int?> addRelation(String parentObjectId, String relationColumnName,
    {List<String>? childrenObjectIds, String? whereClause}) {
  checkArguments(
      {"childrenObjectIds": childrenObjectIds}, {"whereClause": whereClause});
  return _channel
      .invokeMethod("Backendless.Data.of.addRelation", <String, dynamic>{
    'tableName': _tableName,
    'parentObjectId': parentObjectId,
    'relationColumnName': relationColumnName,
    'childrenObjectIds': childrenObjectIds,
    'whereClause': whereClause
  });
}