Moritz
05/23/2018, 2:52 PMType '{ users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profiles: (pare...' is not assignable to type 'GraphQLScalarType'.
Property 'name' is missing in type '{ users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profiles: (pare...'. (2345) in the initialisation of my Prisma server. It is complaining about a file as such: export const Query = {
users: forwardTo("db"),
profile(parent, { id }, ctx: Context, info) {
return ctx.db.query.profile({ where: { id } }, info);
},
} What is the reason for this? Has the query format changed? Thanks!nilan
05/23/2018, 2:53 PMschema.graphql for those two resolvers?Moritz
05/23/2018, 2:56 PMuser resolver. Thanks. The log was a little unclear to me.Moritz
05/23/2018, 2:59 PMprofile(id: ID!): Profile!
# USER
users(
where: UserWhereInput
orderBy: UserOrderByInput
skip: Int
after: String
before: String
first: Int
last: Int
): [User]!nilan
05/23/2018, 2:59 PMnilan
05/23/2018, 2:59 PMUser type in schema.graphql?Moritz
05/23/2018, 3:00 PMnilan
05/23/2018, 3:00 PMMoritz
05/23/2018, 3:00 PM"src/index.ts (6,34): Argument of type '{ typeDefs: string; resolvers: { Query: { users: (parent: any, args: any, context: any, info: Gra...' is not assignable to parameter of type 'Props'.
Types of property 'resolvers' are incompatible.
Type '{ Query: { users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profil...' is not assignable to type 'IResolvers'.
Property 'Query' is incompatible with index signature.
Type '{ users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profiles: (pare...' is not assignable to type '(() => any) | IResolverObject | GraphQLScalarType'.
Type '{ users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profiles: (pare...' is not assignable to type 'GraphQLScalarType'.
Property 'name' is missing in type '{ users: (parent: any, args: any, context: any, info: GraphQLResolveInfo) => any; profiles: (pare...'. (2345)
"Moritz
05/23/2018, 3:01 PMnilan
05/23/2018, 3:01 PMprisma-binding as well?Moritz
05/23/2018, 3:03 PMMoritz
05/23/2018, 3:10 PMMoritz
05/23/2018, 3:13 PMMoritz
05/23/2018, 3:34 PMMoritz
05/23/2018, 3:35 PMType "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.
Server is running on <http://localhost:4000>
Serving playground at <http://localhost:3000/playground>
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at XXX/node_modules/graphql-binding/node_modules/graphql-tools/src/stitching/delegateToSchema.ts:54:12Moritz
05/23/2018, 3:35 PMMoritz
05/23/2018, 3:37 PMMoritz
05/23/2018, 3:37 PMType "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning. Possibly related?nilan
05/23/2018, 3:40 PMprisma-binding and what is your new version?Moritz
05/23/2018, 3:47 PMnilan
05/23/2018, 3:55 PMMoritz
05/24/2018, 9:13 AMsrc/generated folder as the first post deployment hook to make sure that the actual problem is not obscured as above due to old schema versions? Thx for your patience.