You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
Is it possible to define an array of objects ? From what I've read, I only have 2 options:
Create a Phone model and do a one to many association between the User model and the Phone model: I'm not really interested in this solution however, as I'm not planning to search by phone number, and wouldn't want to have a specific table in my db just to store phone numbers...
Define the phone_numbers attribute as type: 'array' and validate its structure by writing some code in a beforeUpdate hook
Am I right and do I have only these 2 options above available or is there a way to define an array type with a proper structure ?
Thank you.
The text was updated successfully, but these errors were encountered:
this repo is for issues regard waterline documentation, I think you should get an answer if you post your question (which is not an issue) on stackoverflow
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'd like to define something along these lines:
but this code doesn't work in Sails.
Is it possible to define an array of objects ? From what I've read, I only have 2 options:
Am I right and do I have only these 2 options above available or is there a way to define an array type with a proper structure ?
Thank you.
The text was updated successfully, but these errors were encountered: