# Query using Custom Types

**URL:** <https://community.prismic.io/t/query-using-custom-types/15457>\
**Category:** Developing with Prismic\
**Tags:** rest-api\
**Created:** [March 11, 2024, 4:15pm UTC](https://community.prismic.io/t/query-using-custom-types/15457 "2024-03-11T16:15:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andre.nunes](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@andre.nunes](https://community.prismic.io/u/andre.nunes)\
**Post date:** [March 11, 2024, 4:15pm UTC](https://community.prismic.io/t/query-using-custom-types/15457/1 "2024-03-11T16:15:42Z")

</div>

I am developing an application that will consume Prismic content via the API.  
But I'm not able to add more than one filter to the query (one for document type and another for a CustomType).

The document type filter works without any problems.  
[at(document.type,"cards")]

But the filter in CustomType does not.  
[at(my.cards.url, ["test"])]  
[at(my.cards.url, "test")]

I need to search within the "cards" types and bring up the records where the 'test' content exists in the CustomType 'url'.

Can someone help me?

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [March 12, 2024, 2:11pm UTC](https://community.prismic.io/t/query-using-custom-types/15457/3 "2024-03-12T14:11:08Z")

</div>

Hi @andre.nunes. I can help you with this. Is the `url` field you're trying to query by a content field that you added to your `cards` type or the meta field that is automatically there?

If it's a content field that you added, what type of field is it?

If it's the automatic one, then unfortunately you can't query by that field. But if your custom type uses the UID field to populate the URL, then you can query by that: `[at(my.cards.uid, "test")]`.

I can help you further if you share your Prismic repo URL with me. If you aren't comfortable sharing it publically, then you can send me a direct message and I can take a closer look at your `cards` types.

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [March 13, 2024, 12:26pm UTC](https://community.prismic.io/t/query-using-custom-types/15457/6 "2024-03-13T12:26:58Z")

</div>

Thanks for providing more information in a private message. Since your `url` field is a rich text field, you can't use the `[at` predicate]([Document API Technical Reference - Documentation - Prismic](https://prismic.io/docs/rest-api-technical-reference#at)). You'll need to use the [`fulltext` predicate](https://prismic.io/docs/rest-api-technical-reference#fulltext).

Here's an example of a query that should work as you expect:

```auto
[fulltext(my.cards.url, "test")]

```

Give that a try.

---

<div class="post-metadata">

**Author:** ![andre.nunes](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@andre.nunes](https://community.prismic.io/u/andre.nunes)\
**Post date:** [March 13, 2024, 12:30pm UTC](https://community.prismic.io/t/query-using-custom-types/15457/7 "2024-03-13T12:30:39Z")

</div>

worked perfectly. Thank you very much.
