# Enabling GraphQL and REST API on same Repository

**URL:** <https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [August 11, 2020, 5:45pm UTC](https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510 "2020-08-11T17:45:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![v-gdubow](https://avatars.discourse-cdn.com/v4/letter/v/51bf81/32.png) [@v-gdubow](https://community.prismic.io/u/v-gdubow)\
**Post date:** [August 11, 2020, 5:45pm UTC](https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510/1 "2020-08-11T17:45:11Z")

</div>

Hello! We are looking into building our site using Gatsby. I see that one of the best ways to get up and running is to leverage the Gatsby Source Plugin.

> **[Set up Prismic](https://prismic.io/docs/technologies/install-the-plugin-gatsby)**
>
> Install and configure the gatsby-source-prismic plugin.

Since we need to have Graphql enabled on our Prismic repository, would this disrupt the existing REST API that our existing site is on?

Does the Graphql endpoint replace or work in conjunction with the existing setup on Prismic repos?

Thanks!  
Graham

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [August 11, 2020, 10:05pm UTC](https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510/2 "2020-08-11T22:05:10Z")

</div>

Hello Graham, welcome to the forum!

These two Data Fetching languages don’t conflict with each other. You can use your repository API with both. Each one has it’s own advantages. Feel free to explore them and discover which one suits your needs the best.

If you have more questions about this or anything else, let us know  
Happy coding 👨‍💻!

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [September 23, 2020, 3:22pm UTC](https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510/3 "2020-09-23T15:22:14Z")

</div>

This issue has been closed due to inactivity.

---

<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:40pm UTC](https://community.prismic.io/t/enabling-graphql-and-rest-api-on-same-repository/1510/4 "2021-12-09T17:40:09Z")

</div>


