mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-08 17:04:29 +01:00
38 lines
624 B
TypeScript
38 lines
624 B
TypeScript
import { gql } from "@apollo/client";
|
|
import { ProjectCard, } from "src/utils/interfaces";
|
|
|
|
export const ALL_CATEGORIES_PROJECTS_QUERY = gql`
|
|
query AllCategoriesProjects {
|
|
allCategories {
|
|
id
|
|
title
|
|
project {
|
|
id
|
|
thumbnail_image
|
|
title
|
|
votes_count
|
|
}
|
|
}
|
|
newProjects {
|
|
id
|
|
title
|
|
thumbnail_image
|
|
votes_count
|
|
category {
|
|
title
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export type ALL_CATEGORIES_PROJECTS_RES = {
|
|
newProjects: ProjectCard[],
|
|
|
|
allCategories: {
|
|
id: number;
|
|
title: string;
|
|
project: ProjectCard[];
|
|
}[];
|
|
};
|