kbrandwijk / graphcool-gateway-apollo-engine-demo Goto Github PK
View Code? Open in Web Editor NEWThis demo demonstrates using Apollo Engine with the Graphcool API Gateway pattern
License: GNU General Public License v3.0
This demo demonstrates using Apollo Engine with the Graphcool API Gateway pattern
License: GNU General Public License v3.0
Firstly, I'd like to say thank you very much for this example! It has been a great help in getting my Graphcool instance to connect with Apollo and enable in-memory caching!
Anyways, I found that Apollo Engine has problems trying to connect to a memcache service with credentials such as Memcachier or Memcached Cloud. I was unable to find similar services that don't require credentials. Have you been able to find a workaround for this? I ask because I currently run this on a Heroku dyno with limited memory and that's causing me problems with Apollo Engine's memory cache.
App immediately crashes when I run any of the start scripts. There is some kind of issue importing graphql-playground/middleware
.
➜ graphcool-gateway-apollo-engine-demo git:(master) yarn start
yarn start v0.22.0
$ nodemon --ext ts --exec node ./node_modules/ts-node/dist/bin index.ts
[nodemon] 1.12.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./node_modules/ts-node/dist/bin index.ts`
/xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:307
throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
^
TSError: ⨯ Unable to compile TypeScript
index.ts (10,39): Cannot find module 'graphql-playground/middleware'. (2307)
at getOutput (/xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:307:15)
at xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:336:16
at Object.compile (/xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:498:11)
at Module.m._compile (/xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:392:43)
at Module._extensions..js (module.js:580:10)
at Object.require.extensions.(anonymous function) [as .ts] (/xxx/graphcool-gateway-apollo-engine-demo/node_modules/ts-node/src/index.ts:395:12)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Function.Module.runMain (module.js:605:10)
[nodemon] app crashed - waiting for file changes before starting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.