-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,748 additions
and
967 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
const FindQueryBuilder = require('./lib/FindQueryBuilder'); | ||
const QueryParameter = require('./lib/QueryParameter'); | ||
const PropertyRef = require('./lib/PropertyRef'); | ||
|
||
const findQuery = (modelClass) => new FindQueryBuilder(modelClass); | ||
|
||
/** | ||
* These export configurations enable JS and TS developers | ||
* to consume objection-find in whatever way best suits their needs. | ||
* Some examples of supported import syntax includes: | ||
* - `const findQuery = require('objection-find')` | ||
* - `const { findQuery } = require('objection-find')` | ||
* - `import * as findQuery from 'objection-find'` | ||
* - `import { findQuery } from 'objection-find'` | ||
* - `import findQuery from 'objection-find'` | ||
*/ | ||
findQuery.findQuery = findQuery; | ||
findQuery.FindQueryBuilder = FindQueryBuilder; | ||
findQuery.QueryParameter = QueryParameter; | ||
findQuery.PropertyRef = PropertyRef; | ||
findQuery.default = findQuery; | ||
module.exports = findQuery; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.