directus-monorepo ( Readme | API )
directus-monorepo > FieldsService
new FieldsService(
options
):FieldsService
Parameter | Type |
---|---|
options |
AbstractServiceOptions |
accountability:
any
cache:
null
|Keyv
<any
,Record
<string
,unknown
> >
helpers:
object
date:
DateHelperMySQL
|DateHelperDefault
|DateHelperSQLite
|DateHelperOracle
|DateHelperMSSQL
schema:
SchemaHelperMySQL
|SchemaHelperDefault
|SchemaHelperCockroachDb
|SchemaHelperSQLite
|SchemaHelperOracle
|SchemaHelperMSSQL
sequence:
AutoIncrementHelperDefault
|AutoIncrementHelperPostgres
st:
GeometryHelperMySQL
|GeometryHelperPostgres
|GeometryHelperSQLite
|GeometryHelperOracle
|GeometryHelperMSSQL
|GeometryHelperRedshift
itemsService:
ItemsService
<Item
>
knex:
Knex
<any
,any
[] >
payloadService:
PayloadService
schema:
SchemaOverview
schemaInspector:
SchemaInspector
systemCache:
Keyv
<any
,Record
<string
,unknown
> >
private
get
hasReadAccess():boolean
addColumnToTable(
table
,field
,alter
=null
):void
Parameter | Type | Default value |
---|---|---|
table |
CreateTableBuilder |
undefined |
field |
any |
undefined |
alter |
any |
null |
void
api/src/services/fields.ts:665
createField(
collection
,field
,table
?,opts
?):Promise
<void
>
Parameter | Type |
---|---|
collection |
string |
field |
any |
table ? |
CreateTableBuilder |
opts ? |
MutationOptions |
Promise
< void
>
api/src/services/fields.ts:249
deleteField(
collection
,field
,opts
?):Promise
<void
>
Parameter | Type |
---|---|
collection |
string |
field |
string |
opts ? |
MutationOptions |
Promise
< void
>
api/src/services/fields.ts:499
readAll(
collection
?):Promise
<Field
[] >
Parameter | Type |
---|---|
collection ? |
string |
Promise
< Field
[] >
readOne(
collection
,field
):Promise
<Record
<string
,any
> >
Parameter | Type |
---|---|
collection |
string |
field |
string |
Promise
< Record
< string
, any
> >
api/src/services/fields.ts:192
updateField(
collection
,field
,opts
?):Promise
<string
>
Parameter | Type |
---|---|
collection |
string |
field |
RawField |
opts ? |
MutationOptions |
Promise
< string
>
api/src/services/fields.ts:376
Generated using TypeDoc and typedoc-plugin-markdown