I am try to query teams using the TeamSearchV2 with the following query:
query Team($orgId: ID!, $siteId: String!,$query: String!)
{ team
{ teamSearchV2(organizationId: $orgId, siteId: $siteId, filter: {query: $query}, searchFields:[NAME])
{ edges
{ node {
memberCount
includesYou
team {
displayName
description
id
state
},
}
}
}
}
}
If I remove the searchFields:[NAME] from the query its works fine. With it I get the following error:
"message": "Validation error (UnknownType) : Unknown type 'TeamSearchField'",
Any ideas or suggestions?
Thanks in advance