🚨 Announcement: A New Chapter for Vendure read more

GlobalSettingsService

GlobalSettingsService

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

Signature

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

Members

constructor

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

getSettings

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

updateSettings

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