© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Deleted User

Download GraphQL Schema

Hi! I'm using the local development setup and would like to download the generated GraphQL schema. I ran
select graphql.rebuild_schema();
select graphql.rebuild_schema();
.

Then I try to download the schema using
curl --request GET 'http://localhost:54321/graphql/v1' \                  
-H 'apikey: eyJhbG...' \                                                                             
-H 'Authorization: Bearer eyJhbG...'
curl --request GET 'http://localhost:54321/graphql/v1' \                  
-H 'apikey: eyJhbG...' \                                                                             
-H 'Authorization: Bearer eyJhbG...'

As result I get:
{"code":"PGRST202","details":null,"hint":"If a new function was created in the database with this name and parameters, try reloading the schema cache.","message":"Could not find the public.graphql() function in the schema cache"}
{"code":"PGRST202","details":null,"hint":"If a new function was created in the database with this name and parameters, try reloading the schema cache.","message":"Could not find the public.graphql() function in the schema cache"}

Obviously there should be no
public.graphql()
public.graphql()
function. How should I modify my request to get the GraphQL schema?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ERROR function graphql.get_schema_version() does not exist
SupabaseSSupabase / help-and-questions
4y ago
Where to get the GraphQL schema for my DB?
SupabaseSSupabase / help-and-questions
3y ago
Supabase volatile function is not being exposed to graphql schema
SupabaseSSupabase / help-and-questions
2mo ago
GraphQL Aggregate
SupabaseSSupabase / help-and-questions
6mo ago