Skip to content

noDuplicatedFields

诊断类别:lint/nursery/noDuplicatedFields

¥Diagnostic Category: lint/nursery/noDuplicatedFields

自从:v1.9.0

¥Since: v1.9.0

来源:

¥Sources:

GraphQL 操作中没有重复的字段。

¥No duplicated fields in GraphQL operations.

检查选择集中的重复字段、操作定义中的变量或字段的参数集中的重复字段。

¥Checks for duplicate fields in selection set, variables in operation definition, or in arguments set of a field.

¥Examples

¥Invalid

query test($v: String, $t: String, $v: String) {
id
}

¥Valid

query {
user {
id
}
}

¥Related links