getDynamicFields

abstract suspend fun getDynamicFields(parentId: String, limit: Int? = null, cursor: String? = null): Result<GetDynamicFieldsQuery.Data?, SuiError>

Fetches a paginated list of all dynamic fields owned by a parent object.

Return

A Result which is either:

  • Ok: Containing a nullable GetDynamicFieldsQuery.Data object with a list of dynamic fields and a pagination cursor.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

parentId

The ID of the parent object.

limit

An optional integer to specify the maximum number of fields to return per page.

cursor

An optional cursor string for pagination.