Skip to content

Commit ab29f94

Browse files
committed
feat(examples, query-graphql): add typegoose discriminator e2e test and fix array filtering
1 parent fbe8283 commit ab29f94

38 files changed

+1586
-5087
lines changed

examples/typegoose-discriminators/e2e/fixtures.ts

Lines changed: 0 additions & 184 deletions
This file was deleted.
Lines changed: 16 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,20 @@
1-
export const todoItemFields = `
1+
export const TODO_TASK_FRAGMENT = `
2+
fragment TodoTaskFragment on TodoTask {
23
id
34
title
45
completed
5-
description
6-
age
7-
`
6+
documentType
7+
priority
8+
}
9+
`;
810

9-
export const subTaskFields = `
10-
id
11-
title
12-
description
13-
completed
14-
`
15-
16-
export const tagFields = `
17-
id
18-
name
19-
`
20-
21-
export const pageInfoField = `
22-
pageInfo{
23-
hasNextPage
24-
hasPreviousPage
25-
startCursor
26-
endCursor
27-
}
28-
`
29-
30-
export const edgeNodes = (fields: string): string => `
31-
edges {
32-
node{
33-
${fields}
34-
}
35-
cursor
36-
}
37-
`
38-
39-
export const todoItemAggregateFields = `
40-
count {
41-
id
42-
title
43-
description
44-
completed
45-
createdAt
46-
updatedAt
47-
}
48-
min {
49-
id
50-
title
51-
description
52-
}
53-
max {
54-
id
55-
title
56-
description
57-
}
58-
`
59-
60-
export const tagAggregateFields = `
61-
count {
62-
id
63-
name
64-
createdAt
65-
updatedAt
66-
}
67-
min {
68-
id
69-
name
70-
}
71-
max {
72-
id
73-
name
74-
}
75-
`
76-
77-
export const subTaskAggregateFields = `
78-
count {
79-
id
80-
title
81-
description
82-
completed
83-
}
84-
min {
85-
id
86-
title
87-
description
88-
}
89-
max {
90-
id
91-
title
92-
description
93-
}
94-
`
11+
export const TODO_APPOINTMENT_FRAGMENT = `
12+
fragment TodoAppointmentFragment on TodoAppointment {
13+
id
14+
title
15+
completed
16+
documentType
17+
dateTime
18+
participants
19+
}
20+
`;

0 commit comments

Comments
 (0)