@weapnl/js-junction 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -0
- package/dist/index.js +1895 -1873
- package/index.d.ts +5 -2
- package/package.json +1 -1
- package/src/builder/properties/accessors.js +7 -5
- package/src/builder/properties/attributes.js +8 -6
- package/src/builder/properties/counts.js +7 -5
- package/src/builder/properties/relations.js +8 -6
- package/src/connection.js +6 -1
- package/src/filters/filters.js +3 -1
- package/src/filters/whereIn.js +1 -1
- package/src/filters/whereNotIn.js +31 -0
- package/src/index.js +1 -1
- package/src/mixins/filterMixin.js +40 -4
- package/src/request.js +16 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -192,6 +192,7 @@ const request = await new User()
|
|
|
192
192
|
.search('john doe') // Search for 'john doe', on the searchable columns of the model (defined in the API)
|
|
193
193
|
.search('john doe', ['name', 'email']) // Search for 'john doe' in columns 'name' and 'email'
|
|
194
194
|
.whereIn('city', ['Gemert', 'Eindhoven', 'Amsterdam']) // Set where in clause
|
|
195
|
+
.whereNotIn('city', ['Rotterdam', 'London']) // Set where not in clause
|
|
195
196
|
.where('name', '=', 'John') // Add where clause
|
|
196
197
|
.where('name', 'John') // If no operator is given, '=' is used
|
|
197
198
|
.appends('age') // Add accessor
|