searchProfiles method

Future<ProfileSearchResult> searchProfiles({
  1. Map<String, dynamic> query = const {},
  2. int? from,
  3. int? size,
  4. String? scroll,
})

Searches security profiles, optionally returning only those linked to the provided list of security roles.

Implementation

Future<ProfileSearchResult> searchProfiles(
    {Map<String, dynamic> query = const {},
    int? from,
    int? size,
    String? scroll}) async {
  final request = KuzzleRequest(
    controller: name,
    action: 'searchProfiles',
    body: query,
    from: from,
    size: size,
    scroll: scroll,
  );
  final response = await kuzzle.query(request);

  return ProfileSearchResult(kuzzle, request: request, response: response);
}