@@ -127,7 +127,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
127127 let request = {
128128 method : 'signIn' ,
129129 array : 'users' ,
130- filter : {
130+ $ filter : {
131131 query : [
132132 { key : 'email' , value : config . email , operator : '$eq' } ,
133133 { key : 'password' , value : config . password , operator : '$eq' }
@@ -275,7 +275,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
275275 }
276276
277277 if ( ! newObject . object . _id )
278- newObject . filter = {
278+ newObject . $ filter = {
279279 query : [ { key : 'path' , value : pathName , operator : '$eq' } ]
280280 }
281281
@@ -378,7 +378,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
378378
379379 let data = { array, object }
380380 if ( ! object . _id && object . path )
381- data . filter = {
381+ data . $ filter = {
382382 query : [ { key : 'path' , value : object . path , operator : '$eq' } ]
383383 }
384384
@@ -408,7 +408,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
408408 async function runStore ( data ) {
409409 try {
410410 let response ;
411- if ( ! data . object . _id && ! data . filter ) {
411+ if ( ! data . object . _id && ! data . $ filter) {
412412 response = await crud . send ( {
413413 method : 'create.object' ,
414414 ...config ,
0 commit comments