GeoPard Tutorials
Ask or search…
⌃K

78. Query: Find "Fields" by "externalKey"

Find "Fields" by the 3rd party externalKey incorporated during the "Field" registration procedure.
OPTION 1 using getFields query:
1
query FindFieldsByExternalKeyOption1 {
2
getFields(filter: {
3
fieldExternalKey: "<third_party_identificator>"
4
}) {
5
totalCount
6
fields {
7
uuid
8
name
9
externalKey
10
}
11
}
12
}
OPTION 2 using getFarms query:
1
query FingFieldsByExternalKeyOption2 {
2
getFarms {
3
fields(externalKeys: ["<third_party_identificator>"]) {
4
uuid
5
name
6
externalKey
7
}
8
}
9
}
10
​