question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow array relationships based on array type columns

See original GitHub issue

It is possible to have array relationships to directly map to an array field in postgres without any middle table connection.

Conversations table

add_column :conversations, :user_ids, :uuid, array: true

hasura-array-relationships

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
pandoratoolboxcommented, Apr 28, 2021

This isn’t working in Hasura v2.0.0-alpha.9, produces error: "error": { "exec_status": "FatalError", "hint": "No operator matches the given name and argument types. You might need to add explicit type casts.", "message": "operator does not exist: bigint[] = bigint", "status_code": "42883", "description": null },

0reactions
efstathiosntonascommented, Jul 12, 2022

any news in this? ^^ many customers have this issue (many open issues). Yes, intermediate table is a solution but we want to avoid it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to store arrays in MySQL? - database schema
The proper way to do this is to use multiple tables and JOIN them in your queries. For example: CREATE TABLE person (...
Read more >
Array to array relation with AND condition - Glide Community
I want to match 2 array columns in two different sheets with a relation and get only those matches which are a AND...
Read more >
Working with Spark ArrayType and MapType Columns
This blog post will demonstrate Spark methods that return ArrayType columns, describe how to create your own ArrayType / MapType columns, and explain...
Read more >
Work with arrays in Google Standard SQL | Cloud Spanner
In Google Standard SQL for Spanner, an array is an ordered list consisting of zero or more values of the same data type....
Read more >
Database Column Type - Array - Flatiron School
Instead, we can transpose our data from a horizontal array to a _vertical_array. We can do this easily in database speak by creating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found