graphql-auto-query
Advanced tools
Comparing version 0.0.1 to 0.0.2
import { GraphQLSchema } from "graphql"; | ||
export declare const generate: (schema: string | GraphQLSchema, depth?: number) => Promise<string>; | ||
export declare const generate: (schema: string | GraphQLSchema, depth?: number) => string; |
@@ -140,3 +140,3 @@ "use strict"; | ||
} | ||
const generate = async (schema, depth = 2) => { | ||
const generate = (schema, depth = 2) => { | ||
const autoQuery = new AutoQuery(schema instanceof graphql_1.GraphQLSchema ? schema : (0, graphql_1.buildSchema)(schema)); | ||
@@ -143,0 +143,0 @@ return autoQuery.generate(depth); |
import { GraphQLSchema } from "graphql"; | ||
export declare const generate: (schema: string | GraphQLSchema, depth?: number) => Promise<string>; | ||
export declare const generate: (schema: string | GraphQLSchema, depth?: number) => string; |
@@ -137,5 +137,5 @@ import { buildSchema, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, Kind, } from "graphql"; | ||
} | ||
export const generate = async (schema, depth = 2) => { | ||
export const generate = (schema, depth = 2) => { | ||
const autoQuery = new AutoQuery(schema instanceof GraphQLSchema ? schema : buildSchema(schema)); | ||
return autoQuery.generate(depth); | ||
}; |
{ | ||
"name": "graphql-auto-query", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "SoraKumo <info@croud.jp>", | ||
@@ -5,0 +5,0 @@ "description": "Automatic generation of GraphQL queries from GraphQL schemas", |
19035