Files
landscape-template/functions/graphql/typeDefs.js
Michael Bumann ff800a263c Hack with category query
no idea what I am doing :D
2021-11-28 09:21:28 -06:00

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]!
}
`;