| 19 | export type ReturnTypeDelete = ActionState<DeleteTypeQuestion, Delete>; |
| 20 | |
| 21 | export interface QuestionQuery { |
| 22 | take?: number; |
| 23 | skip?: number; |
| 24 | orderBy?: { |
| 25 | upvotes?: 'asc' | 'desc'; |
| 26 | downvotes?: 'asc' | 'desc'; |
| 27 | totalvotes?: 'asc' | 'desc'; |
| 28 | createdAt?: 'asc' | 'desc'; |
| 29 | // Add other fields as needed |
| 30 | }; |
| 31 | select?: { |
| 32 | id: boolean; |
| 33 | title: boolean; |
| 34 | totalvotes?: boolean; |
| 35 | upvotes: boolean; |
| 36 | downvotes: boolean; |
| 37 | slug?: boolean; |
| 38 | tags?: boolean; |
| 39 | totalanswers?: boolean; |
| 40 | createdAt: true; |
| 41 | updatedAt: true; |
| 42 | author: { |
| 43 | select: { |
| 44 | id: boolean; |
| 45 | name: boolean; |
| 46 | }; |
| 47 | }; |
| 48 | votes: { |
| 49 | where: { |
| 50 | userId: string | undefined; |
| 51 | }; |
| 52 | select: { |
| 53 | userId: boolean; |
| 54 | voteType: boolean; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | where?: { |
| 59 | authorId?: string; |
| 60 | |
| 61 | title?: { |
| 62 | contains: string; |
| 63 | }; |
| 64 | search?: string; |
| 65 | createdAt?: { |
| 66 | gte?: string; |
| 67 | lt?: string; |
| 68 | }; |
| 69 | }; |
| 70 | } |
| 71 | |
| 72 | export interface Author { |
| 73 | id: string | undefined; |
nothing calls this directly
no outgoing calls
no test coverage detected