Explorar o código

+jwtGQLRole for anon, query recursive walker for object id and regexp

Ivan Asmer %!s(int64=5) %!d(string=hai) anos
pai
achega
f253f63e74
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      expand.js

+ 4 - 1
expand.js

@@ -107,6 +107,9 @@ function mmExpandSchema(gqlSchema){
                             }
                             return obj
                         }
+
+                        
+                        return walker(query)
                     }
 
                     const find = {
@@ -117,7 +120,7 @@ function mmExpandSchema(gqlSchema){
 
                             const Savable = context.models.SlicedSavable || context.models.Savable 
                             args = JSON.parse(args.query)
-                            walker(args[0])
+                            queryUpdater(args[0])
                             console.log(args)
                             let results = []