mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Enable introspection
This commit is contained in:
1
index.js
1
index.js
@@ -13,6 +13,7 @@ function toArray(object) {
|
|||||||
const server = new ApolloServer({
|
const server = new ApolloServer({
|
||||||
typeDefs,
|
typeDefs,
|
||||||
resolvers,
|
resolvers,
|
||||||
|
introspection: true,
|
||||||
playground: true,
|
playground: true,
|
||||||
context: {
|
context: {
|
||||||
continents: Object.entries(continents).map(([code, name]) => ({
|
continents: Object.entries(continents).map(([code, name]) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user