# GraphQL API - OR statements?

**URL:** <https://community.fibery.io/t/graphql-api-or-statements/3048>\
**Category:** API & Programming\
**Created:** [July 7, 2022, 1:01pm UTC](https://community.fibery.io/t/graphql-api-or-statements/3048 "2022-07-07T13:01:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![4erkas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/4erkas/32/4885_2.png) [@4erkas](https://community.fibery.io/u/4erkas)\
**Post date:** [July 7, 2022, 1:01pm UTC](https://community.fibery.io/t/graphql-api-or-statements/3048/1 "2022-07-07T13:01:37Z")

</div>

Is there any way to do “or” like statements on different fields?

Example:

I would like to have requests completed e.g. this week/month etc and started during the same timeframe (but not yet completed):

```
  autoCompletedAt: {greaterOrEquals: $startDate, lessOrEquals: $endDate},
  autoCycleStart: {greaterOrEquals: $startDate, lessOrEquals: $endDate}

```

---

<div class="post-metadata">

**Author:** ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)\
**Post date:** [July 7, 2022, 1:17pm UTC](https://community.fibery.io/t/graphql-api-or-statements/3048/2 "2022-07-07T13:17:45Z")

</div>

Hi, @4erkas

It is possible by using aliases: [Fibery GraphQL API](https://api.fibery.io/graphql.html#aliases)

---

<div class="post-metadata">

**Author:** ![4erkas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/4erkas/32/4885_2.png) [@4erkas](https://community.fibery.io/u/4erkas)\
**Post date:** [July 8, 2022, 7:11am UTC](https://community.fibery.io/t/graphql-api-or-statements/3048/3 "2022-07-08T07:11:14Z")

</div>

Thank you, will be using aliases as alternative to OR statements.
