Bladeren bron

+count to give ability get count via graphql when result type isnt array but Int

Ivan Asmer 5 jaren geleden
bovenliggende
commit
f3100375bf
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      expand.js

+ 1 - 1
expand.js

@@ -1,4 +1,4 @@
-const { buildSchema, GraphQLObjectType, GraphQLString, GraphQLInt GraphQLList, GraphQLSchema } = require('graphql');
+const { buildSchema, GraphQLObjectType, GraphQLString, GraphQLInt, GraphQLList, GraphQLSchema } = require('graphql');
 const ObjectID    = require("mongodb").ObjectID;
 function mmExpandSchema(gqlSchema){
     const types    = {}