From 1310e5dc5908e6d78ff03f4a1e9adca45b57f705 Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Sat, 27 Mar 2021 14:07:42 -0500 Subject: [PATCH] fix(TypeScript): `connection` resolver now returns correct type --- src/resolvers/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/connection.ts b/src/resolvers/connection.ts index 2650ba97..0bca0bee 100644 --- a/src/resolvers/connection.ts +++ b/src/resolvers/connection.ts @@ -21,7 +21,7 @@ export function connection, tc: ObjectTypeComposer, opts?: ConnectionResolverOpts -): Resolver | undefined { +): Resolver { const uniqueIndexes = extendByReversedIndexes(getUniqueIndexes(model), { reversedFirst: true, });