Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for subscriptions in GraphiQL #320

Merged
merged 21 commits into from
Mar 30, 2017
Merged

Add support for subscriptions in GraphiQL #320

merged 21 commits into from
Mar 30, 2017

Conversation

Urigo
Copy link
Contributor

@Urigo Urigo commented Mar 11, 2017

Add support for subscriptions in GraphiQL using subscriptions-transport-ws.

Waiting for apollographql/subscriptions-transport-ws#96

@DxCx
Copy link
Contributor

DxCx commented Mar 11, 2017

I have it already working its on the other PR...

helfer
helfer previously approved these changes Mar 15, 2017
Copy link
Contributor

@helfer helfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Do you have any specific feedback @Hagai? This PR is much easier to merge because it just does one relatively small thing. Let's talk soon to see how we can split your PR to merge it in parts as well!

@helfer
Copy link
Contributor

helfer commented Mar 15, 2017

@Urigo please ping me once the CI tests pass, then I can review again.

@@ -66,6 +68,7 @@ export function renderGraphiQL(data: GraphiQLData): string {
<script src="//cdn.jsdelivr.net/react/15.0.0/react.min.js"></script>
<script src="//cdn.jsdelivr.net/react/15.0.0/react-dom.min.js"></script>
<script src="//cdn.jsdelivr.net/graphiql/${GRAPHIQL_VERSION}/graphiql.min.js"></script>
<script src="//unpkg.com/[email protected]/browser/client.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to pull the package when the user didnt provide the websocket endpoint?


var fetcher;

if ('${subscriptionsEndpoint}' !== '') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing, textal if over known value..

@Urigo Urigo changed the title [WIP] Add support for subscriptions in GraphiQL Add support for subscriptions in GraphiQL Mar 26, 2017
@@ -1,6 +1,6 @@
{
"name": "graphql-server-module-graphiql",
"version": "0.4.4",
"version": "0.6.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do not.
this should be managed by lerna when running npm run release ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DxCx do you mean it should be updated to 0.6.0?
because otherwise the build here doesn't pass...
so we can merge it like so?
and then merge this #334

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have issues with the build because someone already broke it (the same way this does), #334 fixes just that.
So please revert this version change, and we will rebase and merge this

NeoReyad and others added 18 commits March 28, 2017 20:25
Create an integration that will return a lambda handler for a
graphql or graphiql server. This integration requires an API
Gateway with Lambda Proxy Integration.

The test runner expects req and res objects for testing. We
have to mock these for the tests to execute properly.
Add example lambda handler and some documentation
This adds basic instructions to the README for deploying the lambda function. It uses the Serverless Application Model by creating a template that is used by the AWS CLI.
# Conflicts:
#	lerna.json
#	package.json
#	packages/graphql-server-lambda/README.md
#	packages/graphql-server-lambda/src/lambdaApollo.ts
@Urigo
Copy link
Contributor Author

Urigo commented Mar 28, 2017

@DxCx removed the version change commit, this PR is ready.
Please merge the lerna-related changes, rebase this and release a new version.

Thank you and see you tomorrow!

@DxCx DxCx mentioned this pull request Mar 28, 2017
4 tasks
@DxCx DxCx merged commit 9477f01 into apollographql:master Mar 30, 2017
@Urigo Urigo deleted the feat/subscriptions-graphiql branch April 12, 2017 08:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants