findUserByEmail function

Future<ResultList<RecordModel>> findUserByEmail(
  1. String email
)

Implementation

Future<ResultList<RecordModel>> findUserByEmail(String email) async {
  final record = await pocketBase
      .collection("users")
      .getList(
    page: 1,
    perPage: 1,
    filter: 'email = "$email"',
  );

  return record;
}