mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-27 19:24:18 +01:00
28 lines
477 B
TypeScript
28 lines
477 B
TypeScript
import { gql } from "@apollo/client";
|
|
import { Project } from "src/utils/interfaces";
|
|
|
|
export const PROJECT_BY_ID_QUERY = gql`
|
|
query Project($projectId: Int!) {
|
|
getProject(id: $projectId) {
|
|
id
|
|
cover_image
|
|
thumbnail_image
|
|
title
|
|
website
|
|
votes_count
|
|
category {
|
|
title
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export interface PROJECT_BY_ID_RES {
|
|
getProject: Project;
|
|
}
|
|
|
|
export interface PROJECT_BY_ID_VARS {
|
|
projectId: number;
|
|
}
|