If you don’t know an ID of the needed term, it can be found by the name.
Note: query condition is ”=” not “LIKE”. It means that it will search for
the list of terms with exactly the same name that is provided in the request.
Query arguments:
Argument
Type
Description
name
String
Required. The term name (label) to search by.
vocabulary
ID
A machine name of the vocabulary. Can be used to limit the search results.
The query will return the list of terms which name is exactly the same as provided.
Copy
Ask AI
query getTaxonomyTermByName { getTaxonomyTermByName(name: "Onboarding", vocabulary: "lp_domain") { id name parent { id name } vocabulary weight }}