Перейти к содержимому

useUniqueArgumentNames

Это содержимое пока не доступно на вашем языке.

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

Require all argument names for fields & directives to be unique.

A GraphQL field or directive is only valid if all supplied arguments are uniquely named.

query {
field(arg1: "value", arg1: "value")
}
code-block.graphql:2:8 lint/nursery/useUniqueArgumentNames ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Duplicate argument name.

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

A GraphQL field or directive is only valid if all supplied arguments are uniquely named. Make sure to name every argument 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(arg1: "value", arg2: "value")
}