mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-31 21:14:29 +01:00
24 lines
387 B
JavaScript
24 lines
387 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
|
|
}
|
|
`;
|