-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
native support for postgres array types (close #348) #2243
Conversation
…in parsing the type as ColumnType
…n during SQL update
Resolved conflicts
Resolve Conflicts: server/src-exec/Migrate.hs
Deploy preview for hasura-docs ready! Built with commit 8d3af1d |
Review app for commit c392da4 deployed to Heroku: https://hge-ci-pull-2243.herokuapp.com |
Review app for commit d80ac18 deployed to Heroku: https://hge-ci-pull-2243.herokuapp.com |
Review app for commit 0daab14 deployed to Heroku: https://hge-ci-pull-2243.herokuapp.com |
Resolve Conflicts: server/src-lib/Hasura/GraphQL/Schema.hs server/src-lib/Hasura/RQL/DDL/Schema/Diff.hs server/src-lib/Hasura/RQL/Types/Catalog.hs
@jberryman some more context on this https://hasurahq.slack.com/archives/CKFUG6RCH/p1562793618269300 Also, figure out what to do with enums |
Will this patch allow for array relationships to be defined from a uuid[] array field? The gui allowed me to define a relationship from a uuid[] field to another table, but when I attempted to use the relationship in a query:
|
Also related (From the permissions side) #2882 |
What is the status of this? |
Looking forward to this one |
Is it safe to assume that this current PR is dead? @marionschleifer, @0x777 any idea if native array support will be on the roadmap soon? My hasura instances are littered with array sub tables since I prefer the strict type safety that gives me over JSONB fields. |
Looking forward to this |
Hey folks, I'm sorry about letting this PR go stale (preserving backwards compatibility with the above changes is very hard). Over the past few weeks, we've been working on some changes to the codebase that'll help us improve the speed at which we can implement new features. As soon as we are done with it, we'll pick up these PRs. |
@0x777 appreciate the update! thanks! |
What is the status of this? |
@coco98 ? |
Any updates on where this sits on the roadmap? Lots of folks are excited about it: #348 |
what makes it so hard to get merge/implement? it's more than 2 years since the PR created. |
2021 year. Still waiting for. UPD: can do like this: query {
product_stats (
args:{
ids: "{id1, id2}"
}
) {
id
total
}
} |
2022 and still waiting |
closing this stale PR in favour of the original tracking issue #348 |
Description
TODO:- [console] support new input types format (json) for functions.
Allows following types of queries
And the following mutations with array
Support
_preprend
and_append
operators in updating array columnsAffected components
Related Issues
#348
#349
Solution and Design
PGColType
is modified to support postgres typesPGColValue
is modified to parse json values according to newPGColType
hdb_type_info
view is added tohdb_catalog
schema to list all types with detailsSteps to test and verify
Limitations, known bugs & workarounds