@prisma/client#RELATED_ENTITY TypeScript Examples
The following examples show how to use
@prisma/client#RELATED_ENTITY.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: to-many.template.ts From amplication with Apache License 2.0 | 5 votes |
async FIND_MANY(
parentId: string,
args: Prisma.ARGS
): Promise<RELATED_ENTITY[]> {
return this.prisma.DELEGATE.findUnique({
where: { id: parentId },
}).PROPERTY(args);
}
Example #2
Source File: to-one.template.ts From amplication with Apache License 2.0 | 5 votes |
async FIND_ONE(parentId: string): Promise<RELATED_ENTITY | null> {
return this.prisma.DELEGATE.findUnique({
where: { id: parentId },
}).PROPERTY();
}