@remult/angular
Advanced tools
Comparing version 0.10.7 to 0.10.8
{ | ||
"name": "@remult/angular", | ||
"schematics": "./schematics/collection.json", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"description": "an angular module for remult", | ||
@@ -6,0 +6,0 @@ "homepage": "https://remult.dev/", |
@@ -10,4 +10,2 @@ //import { CustomModuleLoader } from '../../../../../../repos/radweb/src/app/server/CustomModuleLoader'; | ||
import { buildSchema } from 'graphql'; | ||
import { graphqlHTTP } from 'express-graphql'; | ||
import { remultGraphql } from 'remult/graphql'; | ||
import * as helmet from 'helmet'; | ||
@@ -42,10 +40,4 @@ import * as jwt from 'express-jwt'; | ||
const { schema, rootValue } = remultGraphql(api); | ||
if (process.env.NODE_ENV !== "production") | ||
app.use('/api/graphql', graphqlHTTP({ | ||
schema: buildSchema(schema), | ||
rootValue, | ||
graphiql: true, | ||
})); | ||
app.use(express.static('dist/my-project')); | ||
@@ -52,0 +44,0 @@ app.use('/*', async (req, res) => { |
@@ -109,4 +109,4 @@ "use strict"; | ||
json.dependencies["compression"] = "^1.7.3"; | ||
json.dependencies["express-graphql"] = "^0.12.0"; | ||
json.dependencies["graphql"] = "^16.0.0"; | ||
//json.dependencies["express-graphql"] = "^0.12.0"; | ||
//json.dependencies["graphql"] = "^16.0.0"; | ||
json.dependencies["swagger-ui-express"] = "^4.1.6"; | ||
@@ -113,0 +113,0 @@ json.dependencies["heroku-ssl-redirect"] = "^0.1.1"; |
Sorry, the diff of this file is not supported yet
1284126
10534