mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Add apollo engine
This commit is contained in:
3
index.js
3
index.js
@@ -15,6 +15,9 @@ const server = new ApolloServer({
|
|||||||
resolvers,
|
resolvers,
|
||||||
introspection: true,
|
introspection: true,
|
||||||
playground: true,
|
playground: true,
|
||||||
|
engine: {
|
||||||
|
apiKey: process.env.ENGINE_API_KEY
|
||||||
|
},
|
||||||
context: {
|
context: {
|
||||||
continents: Object.entries(continents).map(([code, name]) => ({
|
continents: Object.entries(continents).map(([code, name]) => ({
|
||||||
code,
|
code,
|
||||||
|
|||||||
Reference in New Issue
Block a user