daemon
04/18/2022, 8:28 PMType '(_: {}, args: { name: string; }, ctx: Context) => Prisma__ExchangeClient<Exchange>' is not assignable to type 'FieldResolver<"Mutation", "addExchange">'.
Type 'Prisma__ExchangeClient<Exchange>' is not assignable to type 'MaybePromise<{ id: string; name: string; } | null>'.
Type 'Prisma__ExchangeClient<Exchange>' is not assignable to type 'PromiseLike<{ id: string; name: string; } | null>'.
Types of property 'then' are incompatible.
Type '<TResult1 = Exchange, TResult2 = never>(onfulfilled?: ((value: Exchange) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | null | undefined) => Promise<...>' is not assignable to type '<TResult1 = { id: string; name: string; } | null, TResult2 = never>(onfulfilled?: ((value: { id: string; name: string; } | null) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type 'Exchange' is not assignable to type '{ id: string; name: string; }'.
Types of property 'id' are incompatible.
Type 'number' is not assignable to type 'string'.ts(2322)
Richard
04/18/2022, 8:48 PMdaemon
04/18/2022, 8:52 PMdaemon
04/18/2022, 8:52 PMnexus-prisma
?Richard
04/19/2022, 5:38 AM