<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>GraphQL filter nested fields with lambda operators</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120686657" />
  <subtitle>GraphQL filter nested fields with lambda operators</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120686657</id>
  <updated>2026-04-04T10:31:51Z</updated>
  <dc:date>2026-04-04T10:31:51Z</dc:date>
  <entry>
    <title>RE: GraphQL filter nested fields with lambda operators</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120693218" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120693218</id>
    <updated>2021-03-24T06:16:00Z</updated>
    <published>2021-03-24T06:16:00Z</published>
    <summary type="html">&lt;p&gt;I'm afraid only the category id is filtrable: https://help.liferay.com/hc/en-us/articles/360039026232-Filterable-properties&lt;/p&gt;
&lt;p&gt;But you can do what you want by filtering by
  id: taxonomyCategoryIds/any(t:t eq 1)&lt;/p&gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2021-03-24T06:16:00Z</dc:date>
  </entry>
  <entry>
    <title>GraphQL filter nested fields with lambda operators</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686656" />
    <author>
      <name>Stefano Maxis</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686656</id>
    <updated>2021-03-22T09:12:25Z</updated>
    <published>2021-03-20T19:16:44Z</published>
    <summary type="html">&lt;p&gt;Hi, I'm following: &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360039026252-Filter-Sort-and-Search"
  target="_blank"&gt;https://help.liferay.com/hc/en-us/articles/360039026252-Filter-Sort-and-Search&lt;/a&gt;,
  but I'm able to filter only first level fields.&lt;/p&gt;
&lt;p&gt;I'm trying to query blogPostings adding a filter
  on taxonomyCategoryBriefs with taxonomyCategoryId = X, but I get
  &amp;quot;HTTP 400 Bad Request&amp;quot;&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;This is my data without filter:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt;  &amp;quot;data&amp;quot;: {&lt;br /&gt;    &amp;quot;blogPostings&amp;quot;:
  {&lt;br /&gt;      &amp;quot;items&amp;quot;: [&lt;br /&gt;        {&lt;br /&gt;         
  &amp;quot;id&amp;quot;: 38326,&lt;br /&gt;          &amp;quot;headline&amp;quot;:
  &amp;quot;Liferay Post&amp;quot;,&lt;br /&gt;          &amp;quot;articleBody&amp;quot;:
  &amp;quot;&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing
  elit, sed do eiusmod tempor incididunt ut labore et dolore magna
  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
  laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
  in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
  pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
  culpa qui officia deserunt mollit anim id est
  laborum.&amp;lt;/p&amp;gt;&amp;quot;,&lt;br /&gt;         
  &amp;quot;taxonomyCategoryBriefs&amp;quot;: [&lt;br /&gt;            {&lt;br /&gt;       
        &amp;quot;taxonomyCategoryId&amp;quot;: 38437,&lt;br /&gt;             
  &amp;quot;taxonomyCategoryName&amp;quot;: &amp;quot;Liferay&amp;quot;&lt;br /&gt;           
  }&lt;br /&gt;          ],&lt;br /&gt;          &amp;quot;image&amp;quot;: {&lt;br /&gt;         
    &amp;quot;contentUrl&amp;quot;:
  &amp;quot;/documents/38334/38340/liferay.png/ae6992f2-c36a-03ff-89af-d6fc09112041?t=1616148845617&amp;quot;&lt;br /&gt; 
          }&lt;br /&gt;        }&lt;br /&gt;      ]&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;This is the query with the filter:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;query Category {&lt;br /&gt;    blogPostings(siteKey: &amp;quot;20121&amp;quot;,
  filter: &amp;quot;taxonomyCategoryBriefs/any(c: c/taxonomyCategoryName eq
  38437)&amp;quot;&lt;br /&gt;    ) {...}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any idea? Or is there another method to get all posts of a category?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>Stefano Maxis</dc:creator>
    <dc:date>2021-03-20T19:16:44Z</dc:date>
  </entry>
</feed>
