Skip to content

ordered multi link #3271

Answered by elprans
hjalmarlucius asked this question in Q&A
Discussion options

You must be logged in to vote

Would link properties be the correct way to go about it

Yes, a link property is generally the way to go.

Do you intend to permit ObjectType arrays at a later stage?

Unlikely. It is quite hard to enforce referential integrity in collection types containing objects, which is the reason why we don't allow them at the schema level. That said, object arrays are permitted in queries, so you can do WITH obj_array := array_agg(Some.link ORDER BY @sort_order) ... and work with the array in your query.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hjalmarlucius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants