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

Support JSON/JSONB types for queries and mutations #179

Merged
merged 5 commits into from
Jun 16, 2022

Conversation

olirice
Copy link
Contributor

@olirice olirice commented May 20, 2022

What kind of change does this PR introduce?

Adds support for JSON and JSONB types in queries and mutations

Note:
JSON/B fields continue to be unavailable as targets for filtering or sorting because it isn't clear which operations should be supported, or how they should behave

resolves #105

@olirice olirice marked this pull request as draft May 20, 2022 15:24
@olirice
Copy link
Contributor Author

olirice commented May 20, 2022

Note:

This upgrades libgraphqlparser from 0.7.0 to current HEAD to get the bugfix graphql/libgraphqlparser@534a3cf

there is an open issue from 2020 asking for a new release graphql/libgraphqlparser#101 but no one has responded

libgraphqlparser will need to be updated on the supabase platform before this can go out

@olirice olirice marked this pull request as ready for review May 24, 2022 16:47
@olirice olirice merged commit 7777a86 into master Jun 16, 2022
@olirice olirice deleted the json_jsonb_support branch June 16, 2022 18:10
@ghost
Copy link

ghost commented Jun 27, 2022

this is cool. when do we expect this feature to be rolled out on the supabase platform?

@olirice
Copy link
Contributor Author

olirice commented Jun 28, 2022

@rhacker this was included in release 0.3.2 and is available on new projects already. There is a delay getting it rolled out to existing projects because a couple of updates have to happen in sequence (libgraphqlparser) but that should be resolved within 10 days or so

You can check the version installed with

select * from pg_available_extensions where name = 'pg_graphql'

and if you need the feature urgently I can have an existing project upgraded for you if you send me the project_ref

@olirice
Copy link
Contributor Author

olirice commented Jul 1, 2022

@rhacker its rolling out this weekend

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

Successfully merging this pull request may close these issues.

Support JSON and JSONB types as escaped strings
2 participants