Skip to content

Commit

Permalink
fix connection path lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Jun 10, 2023
1 parent 143f01f commit 76889c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-prisma/src/prisma-field-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class PrismaObjectFieldBuilder<
}
return typeName;
},
paths: [[{ name: 'nodes' }], { name: 'edges' }, { name: 'node' }],
paths: [[{ name: 'nodes' }], [{ name: 'edges' }, { name: 'node' }]],
}) as SelectionMap;

const hasTotalCount = totalCount && !!getSelection(['totalCount']);
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-prisma/src/util/map-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function resolveIndirectIncludePaths(
) {
for (const includePath of includePaths) {
if (pathPrefix.length > 0) {
// console.log(includePath, new Error().stack);
resolveIndirectInclude(type, info, selection, [...pathPrefix, ...includePath], path, resolve);
} else {
resolveIndirectInclude(type, info, selection, includePath, path, resolve);
Expand Down

1 comment on commit 76889c9

@vercel
Copy link

@vercel vercel bot commented on 76889c9 Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.