title: How to query this JSONB?
body: <p>So I have a table</p>
  <pre><code>Node_Mapping(location_id:UUID, node_ids: jsonb)
  </code></pre>
  <p>The corresponding POJO for this is</p>
  <pre><code>class NodeMapping{
      UUID locationId;
      Set&lt;String&gt; nodeIds;
  }
  </code></pre>
  <p>Example data in table is</p>
  <pre><code>UUID1 : ['uuid100', 'uuid101']
  UUID2 : ['uuid103', 'uuid101']
  </code></pre>
  <p>So I want to make a query like, find out all the <code>locationIds</code> which contains this <code>List&lt;String&gt; : ['uuid100', 'uuid200', 'uuid300']</code></p>
  <p>Please help me to form the &quot;IN&quot; query with JSONB.</p>
  <p>Also please help me to create a function/SP to take input this list of string and return the list of locationIds as an List/Set..</p>
  <p>I tried the function but that fails.</p>
  <pre><code> CREATE OR REPLACE FUNCTION find_location_ids_for_seller(_seller_id text[])
     RETURNS TABLE(location_id text)
     LANGUAGE plpgsql AS
   $func$
   BEGIN
      RETURN QUERY
      SELECT n.location_id::text
      FROM   node_mapping n
      WHERE  n.node_ids IN _seller_id;
   END
   $func$;
  </code></pre>