GlobalSettingsService

GlobalSettingsService

Contains methods relating to the {@link GlobalSettings} entity.

Signature

class GlobalSettingsService {
  constructor(connection: TransactionalConnection, configService: ConfigService, customFieldRelationService: CustomFieldRelationService)
  async getSettings(ctx: RequestContext) => Promise<GlobalSettings>;
  async updateSettings(ctx: RequestContext, input: UpdateGlobalSettingsInput) => Promise<GlobalSettings>;
}

Members

constructor

method
type:
(connection: TransactionalConnection, configService: ConfigService, customFieldRelationService: CustomFieldRelationService) => GlobalSettingsService

getSettings

async method
type:
(ctx: RequestContext) => Promise<GlobalSettings>
Returns the GlobalSettings entity.

updateSettings

async method
type:
(ctx: RequestContext, input: UpdateGlobalSettingsInput) => Promise<GlobalSettings>