mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-28 03:24:28 +01:00
25 lines
417 B
JavaScript
25 lines
417 B
JavaScript
const { gql } = require("apollo-server-lambda");
|
|
|
|
module.exports = gql`
|
|
type Project {
|
|
id: Int!
|
|
cover_image: String!
|
|
thumbnail_image: String!
|
|
title: String!
|
|
website: String!
|
|
votes_count: Int!
|
|
category: Category!
|
|
}
|
|
|
|
type Category {
|
|
id: Int!
|
|
title: String!
|
|
}
|
|
|
|
type Query {
|
|
allProjects: [Project]!
|
|
getProject(id: Int!): Project
|
|
allCategories: [Category]!
|
|
}
|
|
`;
|