Comparing version 0.12.0-rc.9 to 0.12.0-rc.10
@@ -263,3 +263,3 @@ "use strict"; | ||
builder: this.builderLens, | ||
fieldConfig: Object.assign(Object.assign({}, fieldConfig), { type: finalType }), | ||
fieldConfig: Object.assign(Object.assign({}, fieldConfig), { type: finalType, name: key }), | ||
schemaConfig: this.config, | ||
@@ -627,2 +627,3 @@ parentTypeConfig: rest, | ||
const builderFieldConfig = { | ||
name: fieldConfig.name, | ||
type: this.decorateType(this.getOutputType(fieldConfig.type), fieldConfig.list, this.outputNonNull(typeConfig, fieldConfig)), | ||
@@ -629,0 +630,0 @@ args: this.buildArgs(fieldConfig.args || {}, typeConfig), |
@@ -102,3 +102,5 @@ import { GraphQLLeafType, GraphQLCompositeType, GraphQLInputObjectType, GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLFieldConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLSchema, GraphQLInputObjectTypeConfig } from "graphql"; | ||
}; | ||
export declare type NexusGraphQLFieldConfig = WithExt<GraphQLFieldConfig<any, any>, NexusFieldExtension>; | ||
export declare type NexusGraphQLFieldConfig = WithExt<GraphQLFieldConfig<any, any>, NexusFieldExtension> & { | ||
name: string; | ||
}; | ||
export declare type NexusGraphQLObjectTypeConfig = WithExt<GraphQLObjectTypeConfig<any, any>, NexusObjectTypeExtension>; | ||
@@ -105,0 +107,0 @@ export declare type NexusGraphQLInputObjectTypeConfig = WithExt<GraphQLInputObjectTypeConfig, NexusInputObjectTypeExtension>; |
@@ -52,3 +52,3 @@ "use strict"; | ||
if (typeof authorize !== "function") { | ||
console.error(new Error(`The authorize property provided to ${config.fieldConfig.type} should be a function, saw ${typeof authorize}`)); | ||
console.error(new Error(`The authorize property provided to ${config.fieldConfig.name} with type ${config.fieldConfig.type} should be a function, saw ${typeof authorize}`)); | ||
return; | ||
@@ -55,0 +55,0 @@ } |
export * from "./nullabilityGuardPlugin"; | ||
export * from "./fieldAuthorizePlugin"; | ||
export * from "./queryComplexityPlugin"; | ||
import * as connectionPluginCore from "./connectionPlugin"; | ||
export { connectionPluginCore }; | ||
export { connectionPlugin } from "./connectionPlugin"; |
@@ -6,2 +6,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./fieldAuthorizePlugin"), exports); | ||
tslib_1.__exportStar(require("./queryComplexityPlugin"), exports); | ||
const connectionPluginCore = tslib_1.__importStar(require("./connectionPlugin")); | ||
@@ -8,0 +9,0 @@ exports.connectionPluginCore = connectionPluginCore; |
{ | ||
"name": "nexus", | ||
"version": "0.12.0-rc.9", | ||
"version": "0.12.0-rc.10", | ||
"description": "Scalable, strongly typed GraphQL schema development", | ||
@@ -81,2 +81,3 @@ "keywords": [ | ||
"graphql-iso-date": "^3.6.1", | ||
"graphql-query-complexity": "^0.4.1", | ||
"graphql-relay": "^0.6.0", | ||
@@ -83,0 +84,0 @@ "husky": "^1.1.2", |
@@ -662,2 +662,3 @@ import { | ||
type: finalType, | ||
name: key, | ||
}, | ||
@@ -1094,2 +1095,3 @@ schemaConfig: this.config, | ||
> = { | ||
name: fieldConfig.name, | ||
type: this.decorateType( | ||
@@ -1096,0 +1098,0 @@ this.getOutputType(fieldConfig.type), |
@@ -150,3 +150,3 @@ import { | ||
NexusFieldExtension | ||
>; | ||
> & { name: string }; | ||
@@ -153,0 +153,0 @@ export type NexusGraphQLObjectTypeConfig = WithExt< |
@@ -97,2 +97,4 @@ import { plugin } from "../plugin"; | ||
`The authorize property provided to ${ | ||
config.fieldConfig.name | ||
} with type ${ | ||
config.fieldConfig.type | ||
@@ -99,0 +101,0 @@ } should be a function, saw ${typeof authorize}` |
export * from "./nullabilityGuardPlugin"; | ||
export * from "./fieldAuthorizePlugin"; | ||
export * from "./queryComplexityPlugin"; | ||
import * as connectionPluginCore from "./connectionPlugin"; | ||
export { connectionPluginCore }; | ||
export { connectionPlugin } from "./connectionPlugin"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
893595
165
14421
23