mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Remove playground landing page
This commit is contained in:
4
index.js
4
index.js
@@ -1,5 +1,4 @@
|
|||||||
import {ApolloServer, gql} from 'apollo-server';
|
import {ApolloServer, gql} from 'apollo-server';
|
||||||
import {ApolloServerPluginLandingPageGraphQLPlayground} from 'apollo-server-core';
|
|
||||||
import {buildSubgraphSchema} from '@apollo/subgraph';
|
import {buildSubgraphSchema} from '@apollo/subgraph';
|
||||||
import {readFileSync} from 'fs';
|
import {readFileSync} from 'fs';
|
||||||
import {resolvers} from './resolvers.js';
|
import {resolvers} from './resolvers.js';
|
||||||
@@ -8,8 +7,7 @@ const typeDefs = gql(readFileSync('./schema.graphql', 'utf-8'));
|
|||||||
|
|
||||||
const server = new ApolloServer({
|
const server = new ApolloServer({
|
||||||
schema: buildSubgraphSchema({typeDefs, resolvers}),
|
schema: buildSubgraphSchema({typeDefs, resolvers}),
|
||||||
introspection: true,
|
introspection: true
|
||||||
plugins: [ApolloServerPluginLandingPageGraphQLPlayground()]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen({port: process.env.PORT || 4000}).then(({url}) => {
|
server.listen({port: process.env.PORT || 4000}).then(({url}) => {
|
||||||
|
|||||||
1
package-lock.json
generated
1
package-lock.json
generated
@@ -7,7 +7,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/subgraph": "^0.3.1",
|
"@apollo/subgraph": "^0.3.1",
|
||||||
"apollo-server": "^3.6.3",
|
"apollo-server": "^3.6.3",
|
||||||
"apollo-server-core": "^3.6.3",
|
|
||||||
"countries-list": "^2.5.4",
|
"countries-list": "^2.5.4",
|
||||||
"graphql": "^15.8.0",
|
"graphql": "^15.8.0",
|
||||||
"provinces": "^1.11.0",
|
"provinces": "^1.11.0",
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/subgraph": "^0.3.1",
|
"@apollo/subgraph": "^0.3.1",
|
||||||
"apollo-server": "^3.6.3",
|
"apollo-server": "^3.6.3",
|
||||||
"apollo-server-core": "^3.6.3",
|
|
||||||
"countries-list": "^2.5.4",
|
"countries-list": "^2.5.4",
|
||||||
"graphql": "^15.8.0",
|
"graphql": "^15.8.0",
|
||||||
"provinces": "^1.11.0",
|
"provinces": "^1.11.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user