Skip to content

Commit bde297f

Browse files
committed
internal: Add direct pk to benchmark Entity
1 parent c91b9f2 commit bde297f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/benchmark/schemas.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export class BuildTypeDescription extends Entity {
99
projectId = 'OpenSourceProjects_AbsaOSS_Commons';
1010

1111
static key = 'BuildTypeDescription';
12+
pk() {
13+
return this.id;
14+
}
1215
}
1316
export class BuildTypeDescriptionEmpty extends Entity {
1417
static key = 'BuildTypeDescription';
@@ -43,6 +46,9 @@ export class ProjectWithBuildTypesDescription extends Entity {
4346
};
4447

4548
static key = 'ProjectWithBuildTypesDescription';
49+
pk() {
50+
return this.id;
51+
}
4652
}
4753
export class ProjectWithBuildTypesDescriptionEmpty extends Entity {
4854
static schema = {

0 commit comments

Comments
 (0)