소스 검색

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

Ivan Asmer 5 년 전
부모
커밋
f253f63e74
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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 = []