Say i have an object like ``` type FollowSuggestio...
# orm-help
v
Say i have an object like
Copy code
type FollowSuggestionList {
    id: ID! @unique
    updatedAt: DateTime!

    users: [User!]! @relation(name: "FollowSuggestionEntry")
}
and when i create an instance of it, I connect it to an array of users. When I later query that users property am I guaranteed to get it back in that original array order (provided I don't supply custom ordering)?
Based on the docs, it's ordered by id by default. Perhaps my way to maintain order would be to store the ids themselves as strings instead?
n
When I later query that users property
what do you mean with that exactly?
v
I mean that if i query the
users
object of the
FollowSuggestionList
at a later date I'll get the list back in the same order I connected it?
n
No, you don't. You get it back ordered by
id
.
v
thanks
Thanks for that article, Nilan. Your suggestion is what i ended up doing 👍
👌 1