Explorar o código

scoper on find query.by default adds limit 100

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

+ 1 - 1
expand.js

@@ -2,7 +2,7 @@ const { buildSchema, GraphQLObjectType, GraphQLString, GraphQLInt, GraphQLList,
 const ObjectID    = require("mongodb").ObjectID;
 const bound       = 100;
 function mmExpandSchema(gqlSchema, defaultQueryFields, defaultMutationFields, scoper){
-    function scoperTest(query,cursorCalls=[{},{limit:[limitValue=100]}]) {
+    function scoperTest(query,cursorCalls={limit:[limitValue=100]}) {
         console.log(limitValue, cursorCalls)
         return [query, cursorCalls]
     }