Skip to content

Commit 91be56d

Browse files
committed
address pr comments
1 parent 0209d16 commit 91be56d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime/src/client/executor/name-mapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ export class QueryNameMapper extends OperationNodeTransformer {
235235
}
236236

237237
private resolveFieldFromScopes(name: string, qualifier?: string) {
238-
for (const scope of this.scopes.toReversed()) {
238+
for (let i = this.scopes.length - 1; i >= 0; i--) {
239+
const scope = this.scopes[i]!;
239240
if (qualifier) {
240241
// if the field as a qualifier, the qualifier must match the scope's
241242
// alias if any, or model if no alias

0 commit comments

Comments
 (0)