Skip to content

Commit

Permalink
fix(TypeScript): connection resolver now returns correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
canac authored Mar 27, 2021
1 parent fde394b commit 1310e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function connection<TSource = any, TContext = any, TDoc extends Document
model: Model<TDoc>,
tc: ObjectTypeComposer<TDoc, TContext>,
opts?: ConnectionResolverOpts<TContext>
): Resolver<TSource, TContext, ConnectionTArgs, TDoc> | undefined {
): Resolver<TSource, TContext, ConnectionTArgs, TDoc> {
const uniqueIndexes = extendByReversedIndexes(getUniqueIndexes(model), {
reversedFirst: true,
});
Expand Down

0 comments on commit 1310e5d

Please sign in to comment.