Skip to main content

TaxonomyResolveChildrenOptions

Log in to add to favourites

A structure that supports multiple configuration options for resolving taxonomy nodes

Properties

NameTypeDescription
keystringThe taxonomy node key.
nodeTaxonomyNodeThe taxonomy node.
orderstringSpecifies the order of taxonomy nodes: 'defined' or 'alphabetical' (defaults to 'alphabetical').
childDepthnumberThe depth of resolved children (defaults to 1).
languagestringThe language code for the retrieved taxonomy nodes.

Example

TypeScript
const node = await client.taxonomy.resolveChildren("0/1");

console.log("Taxonomy resolveChildren with taxonomy node key:");
console.log(node);
TypeScript
const node = await client.taxonomy.resolveChildren({
  key: "0/1",
  name: "",
  path: "",
  hasChildren: true,
});

console.log("Taxonomy resolveChildren with taxonomy node:");
console.log(node);
TypeScript
const node = await client.taxonomy.resolveChildren({
  key: "0/1",
  order: "defined",
  childDepth: 10,
  language: "fr-FR",
});
console.log("Taxonomy resolveChildren with options and taxonomy node key:");
console.log(node);
TypeScript
const node = await client.taxonomy.resolveChildren({
  node: { key: "0/1", name: "", path: "", hasChildren: true },
  order: "defined",
  childDepth: 99,
  language: "fr-FR",
});
console.log("Taxonomy resolveChildren with options and taxonomy node:");
console.log(node);

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request