# GraphQL filter with OR not working

**URL:** <https://community.hubspot.com/t/graphql-filter-with-or-not-working/107370>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [May 16, 2024, 8:03pm UTC](https://community.hubspot.com/t/graphql-filter-with-or-not-working/107370 "2024-05-16T20:03:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSteinshouer](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JSteinshouer](https://community.hubspot.com/u/JSteinshouer)\
**Post date:** [May 16, 2024, 8:03pm UTC](https://community.hubspot.com/t/graphql-filter-with-or-not-working/107370/1 "2024-05-16T20:03:08Z")

</div>

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.

```lia-code-sample
query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone __eq: "555-555-5555", OR: {my_custom_property__ eq: "123456"}}) {
...
}

```

If I do this then I get a result.

```lia-code-sample
query MyQuery {
CRM {
contact_collection(limit: 10, filter: {phone__eq: "555-555-5555"}) {
...
}

```

I am not sure what I am doing wrong but any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 22, 2024, 3:34pm UTC](https://community.hubspot.com/t/graphql-filter-with-or-not-working/107370/2 "2024-05-22T15:34:16Z")

</div>

Hey, @JSteinshouer 👋 I hope you got this worked out. If not, have you tried setting up your OR operator like this?

```lia-code-sample
query MyQuery {
 CRM {
 contact_collection(limit: 10, filter: { 
 _or: [
 { phone__eq: "555-555-5555" },
 { my_custom_property__eq: "123456" }
 ]
 }) {
 ...
 }
 }
}

```

Best,

Jaycee
