# \[FIXED\] GraphQL 'where' not searching key text

**URL:** <https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [May 7, 2020, 12:43pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355 "2020-05-07T12:43:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [May 7, 2020, 12:43pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/1 "2020-05-07T12:43:46Z")

</div>

I'm trying to search key text with the graphql endpoint using 'where' but it doesn't seem to work.

Here's my query:

```graphql
query {
  allPages (
    where: {
      page_url_fulltext: "/collections"
    }
  ) {
    totalCount
  }
}

```

But I get no results:

![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/1X/3b166fff43508ec20f861ccb0438a09088829ba0.png)

And I absolutely do have a page with the `page_url` (which is a key text field) equal to `/collections`.

---

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [May 7, 2020, 12:53pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/2 "2020-05-07T12:53:37Z")

</div>

I’ve worked out I need to find a way to run this equivalent REST API query:

```
[at(my.page.page_url, "/collections")]

```

The question is how?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [May 7, 2020, 1:53pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/3 "2020-05-07T13:53:24Z")

</div>

Hi Marcello,

Normally this should be possible, but something is currently broken with the GraphQL API and this doesn’t work right now. We hope to work on this soon so that we can resolve this issue.

Sorry for the inconvenience caused by this in the mean time.

---

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [May 7, 2020, 2:06pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/4 "2020-05-07T14:06:21Z")

</div>

Okay thanks. Is there any lead time on this? Would you be able to notify me when it’s sorted?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [May 7, 2020, 2:12pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/5 "2020-05-07T14:12:18Z")

</div>

I don’t have a concrete ETA on this, but I can assure you it’s a high priority and I’m tracking it. So once we’ve resolved it we’ll notify you here.

---

<div class="post-metadata">

**Author:** ![gingergm](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gingergm](https://community.prismic.io/u/gingergm)\
**Post date:** [June 6, 2020, 4:25pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/6 "2020-06-06T16:25:41Z")

</div>

Hi Phil, is my problem below related?

 ![Screen Shot 2020-06-06 at 17.22.53](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/1X/15ddfc627187b926099f3927d33b3387c468f7c5.png)

---

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [June 24, 2020, 2:30pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/7 "2020-06-24T14:30:35Z")

</div>

@Phil, I just got an email from @Renaud saying this is now fixed? Thought I’d make a note of it here too.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [June 24, 2020, 2:32pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/8 "2020-06-24T14:32:10Z")

</div>

Awesome! We’ll update the docs 😁

---

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [June 24, 2020, 2:32pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/9 "2020-06-24T14:32:56Z")

</div>

Just going to double check now.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [June 25, 2020, 1:28pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/10 "2020-06-25T13:28:06Z")

</div>

This indeed fixed. For anyone who needs this fix activated on their account please send a private message to the Activations Team with your repository name as described in this post. 😁

> [@Feature Activations (GraphQL, Integration Fields etc.)](https://community.prismic.io/t/feature-activations-graphql-integration-fields-etc/847):
>
> This thread details how to request activation of the following Prismic features: Integration Fields Environments (Platinum Plan) You can also ask for these 'action' requests: Main locale changes Deleting user accounts Media removal requests Features that are activated by default (Need activated on legacy repos): GraphQL (Visit [https://your-repo-name.prismic.io/graphql](https://your-repo-name.prismic.io/graphql) to see your GraphQL browser) New toolbar/edit button (If the preview script in your repo has new=true, you are up to date…

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [June 25, 2020, 1:34pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/11 "2020-06-25T13:34:22Z")

</div>

Hi Ginger,

This was indeed related and if you need this fix let the Activations Team know. 🙂

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 15, 2020, 4:46pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/12 "2020-09-15T16:46:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:34pm UTC](https://community.prismic.io/t/fixed-graphql-where-not-searching-key-text/355/13 "2021-12-09T17:34:32Z")

</div>


