Is it possible to add an array of records to a fie...
# orm-help
t
Is it possible to add an array of records to a field in a table? So something like this:
Copy code
User {
  id: 394993
  ...
  userAddress: [Address, Address, Address]
}

Address {
  id: 393932
  ...
}
1
But that won't keep track of the order like an array does
h
You can sort them by the
createdAt
in the
Address
model
n
Hey Ted 👋 Welcome to Prisma’s slack community! 🎉 It seems you are looking for Scalar lists, Can you have a look at it?
t
@Nurul Thanks for the reply. I did take a look at it, but didn't think it can be used with other models
n
Oh, I see, so you want to add a reference to other model? In this case, do you want to store id values of Address models?