Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Using Sanity with Hasura: Merging GraphQL endpoints to manage content

2 replies
Last updated: Dec 17, 2020
Hello,I have a question about using sanity with Hasura (
https://hasura.io/ )I want to have users and other data in Hasura and content like e.g blog posts in sanity so I can manage. Hasura has a thing called remote schemas that will merge your remote schema with the GraphQL engine’s auto-generated schema. But I wasn’t able to figure it out because I didn’t find a single graphql endpoint in docs to merge it with Hasura. Is this even possible or have anyone experience with something like this? This is possible with contentful so I guess it should be with sanity as well (
https://www.contentful.com/blog/2020/09/17/combining-contentful-graphql-postgres-hasura/ )
Dec 17, 2020, 10:12 AM
You need to use the CLI to generate a GraphQL endpoint for your project: https://www.sanity.io/docs/graphql
When you do it will ouput the endpoint URL that you can add to the Hasura instance.
👍
Dec 17, 2020, 12:45 PM
Thank you, this was it 🙂
Dec 17, 2020, 1:04 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?