added chapter view, fixes, added ratings, added chapter updates/deletions
This commit is contained in:
parent
029b7e9353
commit
4801cf3a13
34 changed files with 1345 additions and 191 deletions
|
|
@ -6,6 +6,7 @@ import cors from 'cors';
|
|||
import 'dotenv/config';
|
||||
import express from 'express';
|
||||
import fs from 'fs';
|
||||
import { GraphQLJSON } from 'graphql-scalars';
|
||||
import https from 'https';
|
||||
import path from 'path';
|
||||
import ViteExpress from 'vite-express';
|
||||
|
|
@ -26,6 +27,7 @@ const server = https.createServer({ key, cert }, app);
|
|||
const typeDefs = fs.readFileSync(path.join(__dirname, 'graphql', 'schema.graphql'), 'utf8');
|
||||
|
||||
const resolvers = {
|
||||
JSON: GraphQLJSON,
|
||||
Query,
|
||||
Mutation
|
||||
// Subscription,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue