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

Docs update #101

Open
wants to merge 46 commits into
base: docs-patch
Choose a base branch
from

Conversation

officialkevinbrian
Copy link

@officialkevinbrian officialkevinbrian commented Jul 21, 2023

I have updated and fixed documentation error of this part

User.$useHandler(function(query, queryOptions, done) {
if (query === 'findOne') {
if (queryOptions[0].where.id === 42) {
// Result found, return it
return User.build({ id: 42, name: 'foo' });
} else {
// No results
return null;
}
}
});

LoveAndCoding and others added 30 commits July 31, 2017 10:51
Also tweaked the documentation it generates just a bit
In prep for a v0.9.1 release
Add FindAndCountAll method and add tests
Also tweaked changelog entry for that
Used for imports to get the relative file locations
Stack looks like it is a getter which is where `prepareStackTrace` is actually called. Order matters for getting that and resetting the `prepareStackTrace` function.

TODO: Test has been converted to a bit more of a integration test than unit test to make sure we get coverage of this. Unit test code remains in place but commented out and if/when we get an integration or end-to-end test suite, we should transfer this test over to one of those suites and uncomment the unit test code here.
Missed array access in the call to lookup the filename for the relative file paths. Fix test as well.

Fixes BlinkUX#35
We need to return the object used to store the datatypes, otherwise sequelizeInstance.import is broken.
Adding an editorconfig so things are normalized a bit during editing and we don't get a bunch of whitespace changes
LoveAndCoding and others added 16 commits November 22, 2017 08:39
Add editorconfig override for files needing spaces
Fix some issues with Sequelize compatibility
Add support for mocking .addScope()
Add getDataValue and setDataValue on instance
I have updated the documentation of this error, that too many people were complaining

User.$useHandler(function(query, queryOptions, done) {
    if (query === 'findOne') {
        if (queryOptions[0].where.id === 42) {
            // Result found, return it
            return User.build({ id: 42, name: 'foo' });
        } else {
            // No results
            return null;
        }
    }
});
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

Successfully merging this pull request may close these issues.

9 participants