Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model support for array type #159

Open
jdarosaj opened this issue Aug 10, 2021 · 1 comment
Open

Model support for array type #159

jdarosaj opened this issue Aug 10, 2021 · 1 comment

Comments

@jdarosaj
Copy link

jdarosaj commented Aug 10, 2021

Currently I guess is not possible to use an array as a type for a model property, right?

Would be nice to have something like that:

instance.model('Person', {
    person_id: {
        primary: true,
        type: 'uuid',
        required: true, // Creates an Exists Constraint in Enterprise mode
    },
    age: 'number' // Simple schema definition of property : type
    interests: 'string[]'   <<<<<<<<<<<---------
});

Thank you for your support!

@tpinho
Copy link

tpinho commented Nov 23, 2021

Hi

How are u?

I am facing the same issue.

And iterate the result looking for the relationship is heavy. and in my case the array relationship have other relations.

Any thoughts about how to solve it?

@adam-cowley, can u help us with?

What is the best approach to tackle it?

Tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants