hasura / hasura/graphql-engine

Allow functions to have root fields modified

Open
#6,891 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

We recently broke out 50 tables and the corresponding functions into a separate schema that are shared across multiple databases. We mainly broke them out to allow that schema to have separate database migrations that are versioned differently than the main hosting database. Unfortunately this means that now Hasura prefixes all of those functions with the name of the schema, and now all of the existing GraphQL queries are broken. There is no way to change the root fields with functions like there is for tables and views. This is an inconvenience, because now I have to go and change the source code that references these GraphQL schema functions or reproduce those functions in the public schema of the database.

Provide a way to manually rename functions like tables. This issue is related to "Optional database schema prefix" #6890.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.