# Difference between prismic.io/graphql and localhost/\_\_graphql

**URL:** <https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [November 4, 2020, 11:55am UTC](https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568 "2020-11-04T11:55:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevindamstra](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@kevindamstra](https://community.prismic.io/u/kevindamstra)\
**Post date:** [November 4, 2020, 11:55am UTC](https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568/1 "2020-11-04T11:55:24Z")

</div>

When you setup a prismic project, you can access the url [http://localhost:8000/\_\_graphql](http://localhost:8000/__graphql) to build you queries. Let's say I want to query the homepage heading;

```
{
  allPrismicHomepage {
    edges {
      node {
        data {
          heading {
            text
          }
        }
      }
    }
  }
}

```

We get the following result;

```
{
  "data": {
    "allPrismicHomepage": {
      "edges": [
        {
          "node": {
            "data": {
              "heading": [
                {
                  "text": "Welcome"
                }
              ]
            }
          }
        }
      ]
    }
  },
  "extensions": {}
}

```

So you would think you could use this query in your pages, but once I do I don't get to see anything. When I test this query on [https://myproject.prismic.io/graphql](https://myproject.prismic.io/graphql), I get the following message;

`"Query does not pass validation. Violations:\n\nCannot query field 'allPrismicHomepage' on type 'Query'. Did you mean 'allHomepages'? (line 2, column 3):\n allPrismicHomepage {\n ^"`

What is the difference between "allPrismicHomepage" and "allHomepages"?

Just for information, I'm using the 'gatsby-source-prismic' instead of the 'gatsby-source-prismic-graphql'

With best regards,

---

<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:** [November 5, 2020, 7:22am UTC](https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568/3 "2020-11-05T07:22:38Z")

</div>

It's my understanding that `gatsby-source-prismic` modifies the GraphQL API away from what Prismic provides.

You're seeing this in the fact it adds `Prismic` to type names (i.e. `allPrismicHomepage` and the like), which is meant to namespace the Prismic GraphQL in your Gatsby project. Fragments are different too, as it uses things like `PrismicPageBodyRichText` rather than `PageBodyText`.

I think it modifies the image and rich text responses too, so you won't have access to the same data or schema when accessing through your Prismic repository's GraphQL.

You'll need to rework your request to something like this - use `Ctrl`/`Cmd` + `Space` to autofill the schema:

```auto
query {
  allHomepages {
    edges {
      node {
        heading {
          text
        }
      }
    }
  }
}

```

I'd recommend using [http://localhost:8000/\_\_graphql](http://localhost:8000/__graphql) all the time, to save having to rewrite your queries.

---

<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:** [November 18, 2020, 3:22pm UTC](https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568/5 "2020-11-18T15:22:17Z")

</div>

This issue has been closed as it has been solved, [Flag if it is not the case for you to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<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:05pm UTC](https://community.prismic.io/t/difference-between-prismic-io-graphql-and-localhost-graphql/2568/6 "2021-12-09T17:05:29Z")

</div>


