robzsk / serverless-plugin-graphiql Goto Github PK
View Code? Open in Web Editor NEWCreates http endpoints for graphql server with graphiql
Creates http endpoints for graphql server with graphiql
Hello, first nice plugin but I can't make if work for some reason. GraphiQL runs on localhost but it says "Apollo Server supports only GET/POST requests." Any idea why ? THANKS ๐
The example doesn't work with serverless 1.36.3
.
The server start then exits immediately.
Running :
cd example
npm install serverless
sls graphiql && echo $?
Produce :
Server listening on: 8000
0
node : v6.16.0
, v8.15.0
npm : v3.10.10
, v6.4.1
Thanks for making this plugin!
Are there any plans to continue to support the newer versions of graphql?
Didn't realize at first that the graphql dependency was for your example and not a dependency for the plugin.
I'd recommend having a separate package.json
in the /example
directory to keep dependencies separate. When I copied the example directly I was getting the following error:
Error --------------------------------------------------
Cannot find module 'graphql'
Hi, first thanks for this plugin, I will be using it frequently as soon as I can make it work :)
I can install and launch the plugin, but when I hit the URL, I get this error in the serverless console:
TypeError: Request path contains unescaped characters
at new ClientRequest (_http_client.js:86:13)
at Object.request (http.js:26:10)
at forwardRequestToNodeServer (/Volumes/SDDExt/mygraphql/mygraphql-server/node_modules/aws-serverless-express/index.js:104:22)
at Server.startServer.on (/Volumes/SDDExt/mygraphql/mygraphql-server/node_modules/aws-serverless-express/index.js:154:21)
at emitNone (events.js:91:20)
at Server.emit (events.js:188:7)
at emitListeningNT (net.js:1291:10)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
/Volumes/SDDExt/mygraphql/mygraphql-server/node_modules/aws-serverless-express/index.js:99
context.succeed(errorResponse)
^
TypeError: context.succeed is not a function
at forwardLibraryErrorResponseToApiGateway (/Volumes/SDDExt/mygraphql/mygraphql-server/node_modules/aws-serverless-express/index.js:99:13)
at Server.startServer.on (/Volumes/SDDExt/mygraphql/mygraphql-server/node_modules/aws-serverless-express/index.js:156:21)
at emitNone (events.js:91:20)
at Server.emit (events.js:188:7)
at emitListeningNT (net.js:1291:10)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
I'm using both parameters to configure the plugin: port and function.
It it running on nodejs 6.10
Carlos
Unexpected token export
//serverless.yml
plugins:
- serverless-webpack
- serverless-dynamodb-local
- serverless-offline
- serverless-plugin-graphiql
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.