Authenticated client for DataSource related requests to Lucid.
Extended by
Constructors
new DataSourceClient()
new DataSourceClient(
urls,
updateToken,
fetchMethod): DataSourceClient
Parameters
Parameter | Type | Default value |
---|---|---|
urls | object | undefined |
urls.api | string | undefined |
urls.main | string | undefined |
updateToken | string | undefined |
fetchMethod | GlobalFetchType | globalFetch |
Returns
Methods
update()
update(request): Promise<void>
Create or update a datasource. If you create a new collection it must be fully specified in terms of schema and
and items. If it's just an update then the schema can be omitted (if unchanged) and items that already exist can
be partial.
Parameters
Parameter | Type |
---|---|
request | DataSourceRequest |
Returns
Promise
<void
>