MCPcopy
hub / github.com/feathersjs/feathers / ClientService

Interface ClientService

packages/feathers/src/declarations.ts:46–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46export interface ClientService<
47 Result = any,
48 Data = Partial<Result>,
49 PatchData = Data,
50 FindResult = Paginated<Result>,
51 P = Params
52> {
53 find(params?: P): Promise<FindResult>
54
55 get(id: Id, params?: P): Promise<Result>
56
57 create(data: Data[], params?: P): Promise<Result[]>
58 create(data: Data, params?: P): Promise<Result>
59
60 update(id: Id, data: Data, params?: P): Promise<Result>
61 update(id: NullableId, data: Data, params?: P): Promise<Result | Result[]>
62 update(id: null, data: Data, params?: P): Promise<Result[]>
63
64 patch(id: NullableId, data: PatchData, params?: P): Promise<Result | Result[]>
65 patch(id: Id, data: PatchData, params?: P): Promise<Result>
66 patch(id: null, data: PatchData, params?: P): Promise<Result[]>
67
68 remove(id: NullableId, params?: P): Promise<Result | Result[]>
69 remove(id: Id, params?: P): Promise<Result>
70 remove(id: null, params?: P): Promise<Result[]>
71}
72
73export interface ServiceMethods<
74 Result = any,

Callers 48

superagent.test.tsFile · 0.65
index.test.tsFile · 0.65
fetch.test.tsFile · 0.65
axios.test.tsFile · 0.65
index.test.tsFile · 0.65
testFunction · 0.65
findRawMethod · 0.65
index.test.tsFile · 0.65
getMethod · 0.65
superagent.test.tsFile · 0.65
index.test.tsFile · 0.65
fetch.test.tsFile · 0.65

Implementers 6

MongoDBServicepackages/mongodb/src/index.ts
MemoryServicepackages/memory/src/index.ts
Servicepackages/tests/src/fixture.ts
KnexServicepackages/knex/src/index.ts
Servicepackages/transport-commons/src/client.
MethodServicepackages/adapter-commons/test/fixture.

Calls

no outgoing calls

Tested by

no test coverage detected