Files
landscape-template/functions/graphql/typeDefs.js
Michael Bumann 76059f7ba8 Hello GraphQL
2021-11-28 09:08:44 -06:00

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