Skip to main content

SpaceChildrenClient

Client for querying and filtering children of a space. Children can include subspaces (Projects), files (FileInfo), and various entities like scripts, queries, and connections.

Extends

Constructors

new SpaceChildrenClient()

new SpaceChildrenClient(s): SpaceChildrenClient

Parameters

ParameterType
sany

Returns

SpaceChildrenClient

Overrides

HttpDataSource . constructor

Source

src/dapi.ts:885

Properties

PropertyTypeInherited from
clsNamestringHttpDataSource.clsName
dartanyHttpDataSource.dart

Methods

allPackageVersions()

allPackageVersions(): HttpDataSource <Entity>

Turns off package versions isolation. This DataSource will return all entities in all versions, not only the current one *

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . allPackageVersions

Source

src/dapi.ts:301


by()

by(i): HttpDataSource <Entity>

Parameters

ParameterType
inumber

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . by

Source

src/dapi.ts:306


count()

count(): Promise<number>

Counts entities that satisfy the filtering criteria (see filter). See examples: https://public.datagrok.ai/js/samples/dapi/projects-list Smart filter: https://datagrok.ai/help/datagrok/smart-search

Returns

Promise<number>

Inherited from

HttpDataSource . count

Source

src/dapi.ts:272


delete()

delete(e): Promise<void>

Deletes an entity.

Parameters

ParameterType
eEntity

Returns

Promise<void>

Inherited from

HttpDataSource . delete

Source

src/dapi.ts:296


filter()

filter(types, includeLinked): SpaceChildrenClient

Filters the children by entity types and whether to include linked items. By default, only directly owned children are returned (not links).

Parameters

ParameterTypeDefault valueDescription
typesstringundefinedComma-separated list of entity types to include (e.g., 'Script,DataQuery')
includeLinkedbooleanfalseIf true, includes linked references in addition to owned children (default: false)

Returns

SpaceChildrenClient

A new SpaceChildrenClient with the filter applied

Overrides

HttpDataSource . filter

Source

src/dapi.ts:896


find()

find(id): Promise <Entity>

Returns an entity with the specified id. Throws an exception if an entity does not exist, or is not accessible in the current context. Sample: https://public.datagrok.ai/js/samples/data-access/save-and-load-df

Parameters

ParameterTypeDescription
idstringGUID of the corresponding object

Returns

Promise <Entity>

{Promise<object>} - entity.

Inherited from

HttpDataSource . find

Source

src/dapi.ts:286


first()

first(): Promise <Entity>

Returns fist entity that satisfies the filtering criteria (see filter).

Returns

Promise <Entity>

Inherited from

HttpDataSource . first

Source

src/dapi.ts:277


include()

include(include): HttpDataSource <Entity>

Includes entity in the result

Parameters

ParameterType
includestring

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . include

Source

src/dapi.ts:341


list()

list(options): Promise <Entity[]>

Returns all entities that satisfy the filtering criteria (see filter). See examples: https://public.datagrok.ai/js/samples/dapi/projects-list Smart filter: https://datagrok.ai/help/datagrok/smart-search

Parameters

ParameterType
optionsobject
options.filter?string
options.order?string
options.pageNumber?number
options.pageSize?number

Returns

Promise <Entity[]>

Inherited from

HttpDataSource . list

Source

src/dapi.ts:257


nextPage()

nextPage(): HttpDataSource <Entity>

Returns next page of all entities that satisfy the filtering criteria (see filter). Works only if pageSize was set during previous list() call See examples: https://public.datagrok.ai/js/samples/dapi/projects-list

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . nextPage

Source

src/dapi.ts:320


order()

order(fieldName, desc): HttpDataSource <Entity>

Instructs data source to return results in the specified order.

Parameters

ParameterTypeDefault value
fieldNamestringundefined
descbooleanfalse

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . order

Source

src/dapi.ts:335


page()

page(i): HttpDataSource <Entity>

Restricts results to the specified page number. See also nextPage.

Parameters

ParameterType
inumber

Returns

HttpDataSource <Entity>

Inherited from

HttpDataSource . page

Source

src/dapi.ts:312


save()

save(e): Promise <Entity>

Saves an entity.

Parameters

ParameterType
eEntity

Returns

Promise <Entity>

Inherited from

HttpDataSource . save

Source

src/dapi.ts:291