Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonis-lucid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-lucid-mongodb - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "1.0.28",
"version": "1.0.29",
"scripts": {

@@ -11,0 +11,0 @@ "lint": "standard",

@@ -126,3 +126,3 @@ 'use strict'

* fetch () {
return yield this.relatedQuery.whereIn(this.fromKey, this.parent[this.toKey] || []).fetch()
return yield this.relatedQuery.whereIn(this.fromKey, this.parent.get(this.toKey) || []).fetch()
}

@@ -138,3 +138,3 @@

* find (id) {
return yield this.relatedQuery.whereIn(this.fromKey, this.parent[this.toKey] || []).find(id)
return yield this.relatedQuery.whereIn(this.fromKey, this.parent.get(this.toKey) || []).find(id)
}

@@ -150,6 +150,17 @@

* first () {
return yield this.relatedQuery.whereIn(this.fromKey, this.parent[this.toKey] || []).first()
return yield this.relatedQuery.whereIn(this.fromKey, this.parent.get(this.toKey) || []).first()
}
/**
* fetch
*
* @public
*
* @return {Object}
*/
* update (values) {
return yield this.relatedQuery.whereIn(this.fromKey, this.parent.get(this.toKey) || []).update(values)
}
/**
* belongsTo cannot have paginate, since it

@@ -317,3 +328,3 @@ * maps one to one relationship

} else {
return yield this.relatedQuery.where(this.fromKey, reference).delete()
return yield this.relatedQuery.whereIn(this.fromKey, reference).delete()
}

@@ -320,0 +331,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc