I search for a node with field value client id and I need to update values. How do I do that in drupal 8? I search with the following code
$profileNode = \Drupal::entityTypeManager() ->getStorage('node') ->loadByProperties(['field_user_id' => $id]);
I get an array in response to this which corresponds to this. How do I update the node value with this?