@prisma/client#GitRepository TypeScript Examples

The following examples show how to use @prisma/client#GitRepository. 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: app.service.ts    From amplication with Apache License 2.0 6 votes vote down vote up
async gitRepository(appId: string): Promise<GitRepository | null> {
    return await this.prisma.gitRepository.findUnique({
      where: {
        appId: appId
      },
      include: {
        gitOrganization: true
      }
    });
  }
Example #2
Source File: app.service.spec.ts    From amplication with Apache License 2.0 5 votes vote down vote up
EXAMPLE_GIT_REPOSITORY: GitRepository = {
  id: 'exampleGitRepositoryId',
  name: 'repositoryTest',
  appId: 'exampleAppId',
  gitOrganizationId: 'exampleGitOrganizationId',
  createdAt: new Date(),
  updatedAt: new Date()
}