updateUser method

Future<KuzzleUser> updateUser(
  1. String id,
  2. Map<String, dynamic> body, {
  3. bool? waitForRefresh,
})

Updates a user definition.

Implementation

Future<KuzzleUser> updateUser(String id, Map<String, dynamic> body,
    {bool? waitForRefresh}) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'updateUser',
    uid: id,
    waitForRefresh: waitForRefresh,
    body: body,
  ));

  return KuzzleUser.fromKuzzleResponse(kuzzle, response);
}