const model = MyModel.scope(scopes); const { queryGenerator } = model; const queryOptions = { scopes, attributes, include,