ZoneService

ZoneService

Contains methods relating to Zone entities.

Signature

class ZoneService {
  constructor(connection: TransactionalConnection, configService: ConfigService)
  async findAll(ctx: RequestContext) => Promise<Zone[]>;
  findOne(ctx: RequestContext, zoneId: ID) => Promise<Zone | undefined>;
  async create(ctx: RequestContext, input: CreateZoneInput) => Promise<Zone>;
  async update(ctx: RequestContext, input: UpdateZoneInput) => Promise<Zone>;
  async delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
  async addMembersToZone(ctx: RequestContext, input: MutationAddMembersToZoneArgs) => Promise<Zone>;
  async removeMembersFromZone(ctx: RequestContext, input: MutationRemoveMembersFromZoneArgs) => Promise<Zone>;
}

Members

constructor

method
type:
(connection: TransactionalConnection, configService: ConfigService) => ZoneService

findAll

async method
type:
(ctx: RequestContext) => Promise<Zone[]>

findOne

method
type:
(ctx: RequestContext, zoneId: ID) => Promise<Zone | undefined>

create

async method
type:
(ctx: RequestContext, input: CreateZoneInput) => Promise<Zone>

update

async method
type:
(ctx: RequestContext, input: UpdateZoneInput) => Promise<Zone>

delete

async method
type:
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>

addMembersToZone

async method
type:
(ctx: RequestContext, input: MutationAddMembersToZoneArgs) => Promise<Zone>

removeMembersFromZone

async method
type:
(ctx: RequestContext, input: MutationRemoveMembersFromZoneArgs) => Promise<Zone>