We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466a2f4 commit eea10bfCopy full SHA for eea10bf
packages/runtime/src/client/executor/name-mapper.ts
@@ -194,11 +194,14 @@ export class QueryNameMapper extends OperationNodeTransformer {
194
private resolveFieldFromScopes(name: string, qualifier?: string) {
195
for (const scope of this.modelScopes.toReversed()) {
196
if (qualifier) {
197
- if (scope.alias && qualifier !== scope.alias) {
198
- continue;
199
- }
200
- if (qualifier !== scope.model) {
201
+ if (scope.alias) {
+ if (qualifier !== scope.alias) {
+ continue;
+ }
+ } else {
202
+ if (qualifier !== scope.model) {
203
204
205
}
206
207
const modelDef = getModel(this.schema, scope.model);
0 commit comments