MCPcopy Create free account
hub / github.com/prisma/prisma-examples / main

Function main

orm/grpc/client/filterPosts.ts:14–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const { blog } = grpc.loadPackageDefinition(packageDefinition) as any;
13
14function main() {
15 const client = new blog.Blog(
16 "localhost:50051",
17 grpc.credentials.createInsecure()
18 );
19
20 client.filterPosts({ searchString: "" }, (err: any, response: any) => {
21 if (err) {
22 console.error(err);
23 return;
24 }
25 console.log(response);
26 });
27}
28
29main();

Callers 1

filterPosts.tsFile · 0.70

Calls 2

errorMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected