Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade to pg_graphql v0.2.0 #21

Open
dthyresson opened this issue Apr 4, 2022 · 2 comments
Open

chore: Upgrade to pg_graphql v0.2.0 #21

dthyresson opened this issue Apr 4, 2022 · 2 comments

Comments

@dthyresson
Copy link
Collaborator

See: supabase/pg_graphql#146

Features to consider/test:

  • New error key handling
  • Docs around the rebuild_schema() function

May need @olirice help to update the existing project as well.

@dthyresson dthyresson changed the title Upgrade to pg_graphql v0.2.0 chore: Upgrade to pg_graphql v0.2.0 Apr 4, 2022
@olirice
Copy link
Collaborator

olirice commented Apr 4, 2022

the only compatibility thing to be aware of with this change is that errors have moved in one level to conform to the graphql spec

Before

{
    "errors": "something went wrong"
}

After

{
    "errors": {
        "message": "something went wrong"
    }
}

@dthyresson
Copy link
Collaborator Author

Also, will want to migrate project to a new Supabase project because:

(currently) have a filter for upgrades so that they only apply to projects created after the GA date

Until then, the currently deployed project will not receive pg_graphql updates.

See the following migration guide: https://supabase.com/docs/guides/database#migrating-between-projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants