Skip to content

Latest commit

 

History

History
126 lines (70 loc) · 2.64 KB

class.ImportService.md

File metadata and controls

126 lines (70 loc) · 2.64 KB

directus-monorepo ( Readme | API )


directus-monorepo > ImportService

Class: ImportService

Constructors

constructor()

new ImportService(options): ImportService

Parameters

Parameter Type
options AbstractServiceOptions

Returns

ImportService

Source

api/src/services/import-export/index.ts:40

Properties

accountability

accountability: any

Source

api/src/services/import-export/index.ts:37


knex

knex: Knex< any, any[] >

Source

api/src/services/import-export/index.ts:36


schema

schema: SchemaOverview

Source

api/src/services/import-export/index.ts:38

Methods

import()

import( collection, mimetype, stream): Promise< void >

Parameters

Parameter Type
collection string
mimetype string
stream Readable

Returns

Promise< void >

Source

api/src/services/import-export/index.ts:46


importCSV()

importCSV(collection, stream): Promise< void >

Parameters

Parameter Type
collection string
stream Readable

Returns

Promise< void >

Source

api/src/services/import-export/index.ts:118


importJSON()

importJSON(collection, stream): Promise< void >

Parameters

Parameter Type
collection string
stream Readable

Returns

Promise< void >

Source

api/src/services/import-export/index.ts:72


Generated using TypeDoc and typedoc-plugin-markdown