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
Parameter | Type | Description |
---|---|---|
validateBy | ObjRef[] | metric, attributes, or other objects the elements are validated by. |
Returns:
element query