Comparing version 0.12.0-rc.10 to 0.12.0-rc.11
@@ -5,2 +5,11 @@ # Changelog | ||
### 0.12.0-rc.11 | ||
- fix: TypeScript error from missing `graphql-query-complexity` import (#376) | ||
### 0.12.0-rc.10 | ||
- feat: add `queryComplexityPlugin` (#369) | ||
- feat: expose `name` on `fieldConfig` (#368) | ||
### 0.12.0-rc.9 | ||
@@ -7,0 +16,0 @@ |
import { RootValue, ArgsValue, GetGen } from "../core"; | ||
import { ComplexityEstimatorArgs } from "graphql-query-complexity"; | ||
import { GraphQLField } from "graphql"; | ||
export declare type QueryComplexityEstimatorArgs<TypeName extends string, FieldName extends string> = ComplexityEstimatorArgs & { | ||
export declare type QueryComplexityEstimatorArgs<TypeName extends string, FieldName extends string> = { | ||
type: RootValue<TypeName>; | ||
field: GraphQLField<RootValue<TypeName>, GetGen<"context">, ArgsValue<TypeName, FieldName>>; | ||
args: ArgsValue<TypeName, FieldName>; | ||
childComplexity: number; | ||
}; | ||
@@ -9,0 +9,0 @@ export declare type QueryComplexityEstimator<TypeName extends string, FieldName extends string> = (options: QueryComplexityEstimatorArgs<TypeName, FieldName>) => number | void; |
{ | ||
"name": "nexus", | ||
"version": "0.12.0-rc.10", | ||
"version": "0.12.0-rc.11", | ||
"description": "Scalable, strongly typed GraphQL schema development", | ||
@@ -81,3 +81,2 @@ "keywords": [ | ||
"graphql-iso-date": "^3.6.1", | ||
"graphql-query-complexity": "^0.4.1", | ||
"graphql-relay": "^0.6.0", | ||
@@ -84,0 +83,0 @@ "husky": "^1.1.2", |
import { plugin } from "../plugin"; | ||
import { printedGenTyping, printedGenTypingImport } from "../utils"; | ||
import { RootValue, ArgsValue, GetGen } from "../core"; | ||
import { ComplexityEstimatorArgs } from "graphql-query-complexity"; | ||
import { GraphQLField } from "graphql"; | ||
@@ -27,3 +26,3 @@ | ||
FieldName extends string | ||
> = ComplexityEstimatorArgs & { | ||
> = { | ||
type: RootValue<TypeName>; | ||
@@ -36,2 +35,3 @@ field: GraphQLField< | ||
args: ArgsValue<TypeName, FieldName>; | ||
childComplexity: number; | ||
}; | ||
@@ -38,0 +38,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22
893080