99designs / 99designs/gqlgen

Unexpected results for nested field alias if field arguments used

オープン
#2,392 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
10.8k
フォーク
1.3k
平均マージ
2日 36分
マージ済み PR(30日)
26

説明

### What happened?

Using a query like:

```
items {
photos {
thumbnail: url(width:200)
wide: url(width:1000)
}
}
```

Reports success, but the `wide` alias is of a width of `200`, so the second field alias with arguments just returns whatever the arguments were to the first field alias.

### What did you expect?

Either a 422 or some other error indicating that using alias with field arguments is not supported OR gqlgen calls the resolver for each alias with field arguments.

### Minimal graphql.schema and models to reproduce

```
type Item {
photos: [Photo]
}

type Photo {
url: String!
}

query items(): [Item!]
```

### versions
- 1.17.2
- 1.18

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。