isNameExist method

  1. @override
Future<bool> isNameExist(
  1. String collectionId, {
  2. required String value,
  3. String name = 'name',
})
override

Implementation

@override
Future<bool> isNameExist(
  String collectionId, {
  required String value,
  String name = 'name',
}) async {
  await initialize();
  SupabaseQueryBuilder fromRef = AbsDatabase.sbDBConn!.from(collectionId);
  List resultList = await fromRef.select().eq(name, value);
  return resultList.isNotEmpty;
}