EntityQuery condition "is not equal to..." Problem :

I need filtering entities based on the value of a multiple-choice field.
I want my query returns all entities except those who have a given value ('doe' for this example).

Actual :

multiple-choice values

foo|Choice 1
bar|Choice 2
doe|Choice 3


MyController.php

$query = \Drupal::entityQuery('node')
       -&gt;condition('type', 'order');
$nids = $query-&gt;execute();
$entities = \Drupal::entityManager()-&gt;getStorage('node')-&gt;loadMultiple($nids);


Need :

So I need something like below :

$query = \Drupal::entityQuery('node')
       -&gt;condition('type', 'order')
       -&gt;condition('field_multiple_choice', '!=', 'doe');
$nids = $query-&gt;execute();
$entities = \Drupal::entityManager()-&gt;getStorage('node')-&gt;loadMultiple($nids);


How can I do ?
Thank you in advance.
I found it !

I was not far away, I've just to reverse the last two parameters of the condition.

$query = \Drupal::entityQuery('node')
       -&gt;condition('type', 'order')
       -&gt;condition('field_multiple_choice', 'doe', '!=');
$nids = $query-&gt;execute();
$entities = \Drupal::entityManager()-&gt;getStorage('node')-&gt;loadMultiple($nids);



  As the doc says, public function
  QueryInterface::condition
  take following arguments :

condition( $field , $value = NULL , $operator = NULL , $langcode = NULL )