directus-monorepo ( Readme | API )
directus-monorepo > ExportService
new ExportService(
options):ExportService
| Parameter | Type |
|---|---|
options |
AbstractServiceOptions |
api/src/services/import-export/index.ts:196
accountability:
any
api/src/services/import-export/index.ts:193
knex:
Knex<any,any[] >
api/src/services/import-export/index.ts:192
schema:
SchemaOverview
api/src/services/import-export/index.ts:194
exportToFile(
collection,query,format,options?):Promise<void>
Export the query results as a named file. Will query in batches, and keep appending a tmp file until all the data is retrieved. Uploads the result as a new file using the regular FilesService upload method.
| Parameter | Type |
|---|---|
collection |
string |
query |
Query |
format |
ExportFormat |
options? |
object |
options.file? |
any |
Promise< void >
api/src/services/import-export/index.ts:207
transform(
input,format,options?):string
Transform a given input object / array to the given type
| Parameter | Type |
|---|---|
input |
Record< string, any >[] |
format |
ExportFormat |
options? |
object |
options.includeFooter? |
boolean |
options.includeHeader? |
boolean |
string
api/src/services/import-export/index.ts:364
Generated using TypeDoc and typedoc-plugin-markdown