# Cannot query field "allBuilderModels" on type "Query"

**URL:** <https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358>\
**Category:** Bugs\
**Tags:** gatsby, react, api\
**Created:** [December 22, 2020, 8:41pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358 "2020-12-22T20:41:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehmetkose](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/mehmetkose/32/223_2.png) [@mehmetkose](https://forum.builder.io/u/mehmetkose)\
**Post date:** [December 22, 2020, 8:41pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/1 "2020-12-22T20:41:25Z")

</div>

Hello, we are having a problem with querying the Graphql API in our website. I’m pretty sure we are querying in the same exact way as yesterday, but we are having this error. Even our development process blocked. Is there any problem with the Graphql API?

> error There was an error in your GraphQL query:  
> Cannot query field “allBuilderModels” on type “Query”.

 ![Screen Shot 2020-12-23 at 00.59.51](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/297614c801deb2b19ff5fcc7fb854bccd1f4eb85.jpeg)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [December 23, 2020, 7:55pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/2 "2020-12-23T19:55:23Z")

</div>

Thanks for reporting @mehmetkose, if this is a persistent issue, please send your API key to investigate further.

---

<div class="post-metadata">

**Author:** ![mehmetkose](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/mehmetkose/32/223_2.png) [@mehmetkose](https://forum.builder.io/u/mehmetkose)\
**Post date:** [December 23, 2020, 8:17pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/3 "2020-12-23T20:17:17Z")

</div>

We are realized that one of our content team has created a component model starting with numbers like “89 Something” so I think that cause some errors so that’s why GraphQL API was responding 500. Maybe better [builder.io](http://builder.io) not allow people to create model names that not matching with that regex in the first place

---

<div class="post-metadata">

**Author:** ![mehmetkose](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/mehmetkose/32/223_2.png) [@mehmetkose](https://forum.builder.io/u/mehmetkose)\
**Post date:** [December 23, 2020, 8:22pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/4 "2020-12-23T20:22:15Z")

</div>

We couldn’t see the error on the console but when we check on graphql explorer, we saw that error was related with a model name.

---

<div class="post-metadata">

**Author:** ![Harrys\_MarketingOps](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@Harrys\_MarketingOps](https://forum.builder.io/u/Harrys_MarketingOps)\
**Post date:** [November 7, 2021, 2:02am UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/5 "2021-11-07T02:02:05Z")

</div>

We had a similar error message, but with a different root cause. Transcribing here for posterity:

In attempting to update our webapp to the most up-to-date dependencies, we briefly upgraded to Gatsby 4.1.x, which is (as of Nov 2021) incompatible with @builder.io/gatsby 2.0.4.

Every subsequent build failed until we reverted to Gatsby 3.14.x, re-ran `yarn install` and `gatsby clean` and subsequently re-ran the `gatsby build`

---

<div class="post-metadata">

**Author:** ![bubsnaturals](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bubsnaturals](https://forum.builder.io/u/bubsnaturals)\
**Post date:** [February 4, 2022, 6:47pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/6 "2022-02-04T18:47:44Z")

</div>

Was there every a solution to this? We’re running into the same issue with Gatsby 4.

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [February 4, 2022, 9:18pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/7 "2022-02-04T21:18:46Z")

</div>

Hi @bubsnaturals!

There are a couple of causes/fixes listed above where other users encountered this. If these didn’t work, could you provide more details around the error you’re experiencing as well as your public API key?

---

<div class="post-metadata">

**Author:** ![bubsnaturals](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bubsnaturals](https://forum.builder.io/u/bubsnaturals)\
**Post date:** [February 11, 2022, 7:09pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/8 "2022-02-11T19:09:27Z")

</div>

@maddy - Should I drop my public api here? We’re still running into issues with Gatsby 4.

---

<div class="post-metadata">

**Author:** ![laurence](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@laurence](https://forum.builder.io/u/laurence)\
**Post date:** [February 15, 2022, 10:36am UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/9 "2022-02-15T10:36:53Z")

</div>

Hi, I’m also experiencing this issue. None of our builder components start with a number. Has anyone found a solution to this yet other then downgrading to Gatsby v3?

Thanks

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [February 15, 2022, 5:26pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/10 "2022-02-15T17:26:47Z")

</div>

Hi @bubsnaturals and @laurence,

I spoke with our team and Gatsby v4 is not currently supported (you can see the supported version [here](https://github.com/BuilderIO/builder/blob/main/packages/gatsby/package.json)).

---

<div class="post-metadata">

**Author:** ![laurence](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@laurence](https://forum.builder.io/u/laurence)\
**Post date:** [February 15, 2022, 6:27pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/11 "2022-02-15T18:27:04Z")

</div>

Hi Maddy

Is there an ETA for v4 compatibility?

Thanks

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [February 15, 2022, 7:57pm UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/12 "2022-02-15T19:57:47Z")

</div>

There is a PR for this that is being reviewed, but support is available now on v2.0.6-15. Once reviewed and merged it’ll be available on a major version but for now to unblock you:

`npm install @builder.io/gatsby@2.0.6-15`

---

<div class="post-metadata">

**Author:** ![jballo](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jballo](https://forum.builder.io/u/jballo)\
**Post date:** [October 31, 2022, 7:46am UTC](https://forum.builder.io/t/cannot-query-field-allbuildermodels-on-type-query/358/13 "2022-10-31T07:46:50Z")

</div>

Hi @maddy Is Gatsby v4 supported now? I ran into a similar issue with a typescript Gatsby v4 project and Builder:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/a/a71f79f12369199e2d59a0602cb7264473c1a078.png)

I saw your comment that v4 isn’t supported, but I also see that builder-io/gatsby 3.x has been released, and that the package.json file you linked to lists gatsby ^4.
