Перейти до вмісту

useUniqueInputFieldNames

Цей контент ще не доступний вашою мовою.

biome.json
{
"linter": {
"rules": {
"nursery": {
"useUniqueInputFieldNames": "error"
}
}
}
}

Require fields within an input object to be unique.

A GraphQL input object value is only valid if all supplied fields are uniquely named.

query {
field(arg: { f1: "value", f1: "value" })
}
code-block.graphql:2:14 lint/nursery/useUniqueInputFieldNames ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Duplicate input field name.

1 │ query {
> 2 │ field(arg: { f1: “value”, f1: “value” })
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 │ }
4 │

A GraphQL input object value is only valid if all supplied fields are uniquely named. Make sure to name every input field differently.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

query {
field(arg: { f1: "value", f2: "value" })
}