<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GraphQL filter with OR not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/GraphQL-filter-with-OR-not-working/m-p/977850#M73700</link>
    <description>&lt;P&gt;Hello. I am new to GraphQL so I am likley not doing something the correct way. I am trying to query to filter results using the OR operation. Here is my query but it does not return any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone__eq: "555-555-5555", OR: {my_custom_property__eq: "123456"}}) {
...
}&lt;/LI-CODE&gt;&lt;P&gt;If I do this then I get a result.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone__eq: "555-555-5555"}) {
...
}&lt;/LI-CODE&gt;&lt;P&gt;I am not sure what I am doing wrong but any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 20:03:08 GMT</pubDate>
    <dc:creator>JSteinshouer</dc:creator>
    <dc:date>2024-05-16T20:03:08Z</dc:date>
    <item>
      <title>GraphQL filter with OR not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/GraphQL-filter-with-OR-not-working/m-p/977850#M73700</link>
      <description>&lt;P&gt;Hello. I am new to GraphQL so I am likley not doing something the correct way. I am trying to query to filter results using the OR operation. Here is my query but it does not return any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone__eq: "555-555-5555", OR: {my_custom_property__eq: "123456"}}) {
...
}&lt;/LI-CODE&gt;&lt;P&gt;If I do this then I get a result.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone__eq: "555-555-5555"}) {
...
}&lt;/LI-CODE&gt;&lt;P&gt;I am not sure what I am doing wrong but any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 20:03:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/GraphQL-filter-with-OR-not-working/m-p/977850#M73700</guid>
      <dc:creator>JSteinshouer</dc:creator>
      <dc:date>2024-05-16T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: GraphQL filter with OR not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/GraphQL-filter-with-OR-not-working/m-p/980558#M73806</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/763107"&gt;@JSteinshouer&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I hope you got this worked out. If not, have you tried setting up your OR operator like this?&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;query MyQuery {
  CRM {
    contact_collection(limit: 10, filter: { 
      _or: [
        { phone__eq: "555-555-5555" },
        { my_custom_property__eq: "123456" }
      ]
    }) {
      ...
    }
  }
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:34:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/GraphQL-filter-with-OR-not-working/m-p/980558#M73806</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-22T15:34:16Z</dc:date>
    </item>
  </channel>
</rss>

