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

TypeError for scope with {all: true} include #4584

novacrazy opened this Issue Sep 29, 2015 · 0 comments


1 participant

novacrazy commented Sep 29, 2015

Using Sequelize 3.9.0 to interact with a PostgreSQL database.

When trying to define a scope (e.g., "everything") with an include: [{all: true}], sequelize throws a TypeError HERE, because there is no model property in the include property.

There isn't any documentation specifying a scope cannot have include: [{all: true}], so I assume this is a bug.

I can't tell if it actually affects the scope in any way, but a temporary workaround I found was just setting some simple non-null value as model, like an empty object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment