mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-17 22:34:21 +01:00
35 lines
750 B
JavaScript
35 lines
750 B
JavaScript
const { makeSchema } = require('nexus');
|
|
const { join } = require('path');
|
|
const types = require('../types')
|
|
|
|
|
|
const schema = makeSchema({
|
|
types: types,
|
|
outputs: {
|
|
typegen: join(__dirname, '..', 'nexus-typegen.ts'),
|
|
schema: join(__dirname, '..', 'schema.graphql'),
|
|
},
|
|
})
|
|
|
|
module.exports = schema;
|
|
|
|
// const { gql } = require("apollo-server-lambda");
|
|
// const projectSchema = require('./project')
|
|
// const categorySchema = require('./category')
|
|
// const voteSchema = require('./vote')
|
|
|
|
// const linkSchema = gql`
|
|
// type Query {
|
|
// _: Boolean
|
|
// }
|
|
|
|
// type Mutation {
|
|
// _: Boolean
|
|
// }
|
|
|
|
// type Subscription {
|
|
// _: Boolean
|
|
// }
|
|
// `;
|
|
|
|
// module.exports = [linkSchema, categorySchema, projectSchema, voteSchema];
|