exists method

Future<bool> exists(
  1. TPrimaryKey id
)

Checks whether or not the id exists.

Implementation

Future<bool> exists(TPrimaryKey id) async {
  return await transaction((context) async {
    return await context.idExists(bean, id);
  });
}