Azure / Azure/data-api-builder

[Bug]: Incorrect parsing of default values when GQL context variables are used

オープン
#2,079 コメント 6 件 リアクション 0 件 担当者 1 名 @ayush3797 が担当を希望しています GitHub で見る
bug graphql
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

Consider the table definition for `type_table`:

image

The column `float_types` is a column which has a default value of `1.1`. Now, if we execute a GQL create mutation on this table and:

1. Provide input using GQL context variables
2. Omit value for the `float_types` column (since it has a default value so we don't need to specify it)

We get an error:

```json
{
"errors": [
{
"message": "Float cannot parse the given literal of type `StringValueNode`.",
"path": [
"item",
"float_types"
],
"extensions": {
"field": "CreateSupportedTypeInput.float_types",
"fieldType": "Float"
}
}
]
}
```

image

Similar behavior was observed when `int_types` was given a default value.

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

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

評価

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

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

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