useUniqueInputFieldNames
Это содержимое пока не доступно на вашем языке.
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/useUniqueInputFieldNames - This rule doesn’t have a fix.
- The default severity of this rule is information.
- Sources:
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useUniqueInputFieldNames": "error" } } }}Description
Section titled “Description”Require fields within an input object to be unique.
A GraphQL input object value is only valid if all supplied fields are uniquely named.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”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" })}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.