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

Ability to sort sub-resources #75

Open
dpalma opened this issue Jan 23, 2021 · 0 comments
Open

Ability to sort sub-resources #75

dpalma opened this issue Jan 23, 2021 · 0 comments

Comments

@dpalma
Copy link

dpalma commented Jan 23, 2021

I'd like to use sequelize ordering on a sub-resource of one of my top-level resources. I think this could be done by enhance the options that "associations" recognizes, when specified as an object. Something like this:

var groupResource = finale.resource({
    model: db.models.Group,
    actions: ['read'],
    associations: {
        Members: {
            order: ['index']
        }  
    }
});
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

1 participant