GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

withAvailableElementsOnly()

Home > @gooddata/sdk-backend-spi > IElementsQuery > withAvailableElementsOnly

IElementsQuery.withAvailableElementsOnly() method

Sets the catalog objects based on which the elements are validated, i.e., if set, only the elements that are available with these metrics, attributes, etc. are returned.

Note that this functionality is not supported by every backend.

Signature:

withAvailableElementsOnly(validateBy: ObjRef[]): IElementsQuery;

Parameters

ParameterTypeDescription
validateByObjRef[]metric, attributes, or other objects the elements are validated by.

Returns:

IElementsQuery

element query

  • IElementsQuery.withAvailableElementsOnly() method
  • Parameters
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use