We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 151a7b8 commit c2a7167Copy full SHA for c2a7167
lib/Model.js
@@ -30,6 +30,14 @@ function Model(opts) {
30
if (!inst_opts) {
31
inst_opts = {};
32
}
33
+
34
+ for (var k in data) {
35
+ if (k != "extra_field" && !opts.properties.hasOwnProperty(k) && opts.keys.indexOf(k) == -1
36
+ && association_properties.indexOf(k) == -1) {
37
+ delete data[k];
38
+ }
39
40
41
var instance = new Instance({
42
id : opts.id,
43
keys : opts.keys,
0 commit comments