MCPcopy Create free account
hub / github.com/code100x/cms / QuestionQuery

Interface QuestionQuery

src/actions/question/types.ts:21–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19export type ReturnTypeDelete = ActionState<DeleteTypeQuestion, Delete>;
20
21export 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
72export interface Author {
73 id: string | undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected