-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Graphiql fetcher observable for subscriptions #222
Comments
For which transport? I have it already implemented for websocket... |
@DxCx where have you implemented? Would be great to take a look. Couldn't find anything in the source here. |
Well i was working to achieve subscriptions using observables on server as well. (Resolvers returns observable, instead of manager) /~https://github.com/DxCx/apollo-server/blob/rxjs-with-ws/src/modules/renderGraphiQL.ts#L39 Please note that my transport is full graphql over websocket and not the same as websocket protocol for subscriptions that is used today |
@rogchap I'm not sure if this issue has anything to do with graphql-server. I think graphiql would be a better place for it, but as far as I know fetch can already return an observable there. |
@helfer I think that graphiql is fine and more to do with how we implement Maybe there's more to it? |
yes. Graphiql supports observables. |
@rogchap indeed, you're right! Looking forward to that PR 😉 |
any update on this? |
I've started working on a proper websocket interface design (#272). |
I think @Urigo's solution will do for now. |
* chore(deps): update dependency prettier to v1.18.2 * Apply the same Prettier changes that were applied to Apollo Server For more information see: 55312289116d * Introduce an `.editorconfig`. Commit message mostly lifted from 29e563df544. Follow up on c743c8584d20ac2c74cacf8fee7fa6bd, which removed Prettier, with some simple rules in a format that's understood by most editors and some opinionated code formatters (like Prettier). This should help keep less obvious things - like tabs vs spaces and CRLF vs LF - from working their way into the codebase, but stops short of making more destructive formatting changes. * Allow destructive formatting forced by an update to `prettier`.
* chore(deps): update dependency prettier to v1.18.2 * Apply the same Prettier changes that were applied to Apollo Server For more information see: 55312289116d * Introduce an `.editorconfig`. Commit message mostly lifted from 29e563df544. Follow up on c743c8584d20ac2c74cacf8fee7fa6bd, which removed Prettier, with some simple rules in a format that's understood by most editors and some opinionated code formatters (like Prettier). This should help keep less obvious things - like tabs vs spaces and CRLF vs LF - from working their way into the codebase, but stops short of making more destructive formatting changes. * Allow destructive formatting forced by an update to `prettier`.
* chore(deps): update dependency prettier to v1.18.2 * Apply the same Prettier changes that were applied to Apollo Server For more information see: 55312289116d * Introduce an `.editorconfig`. Commit message mostly lifted from 29e563df544. Follow up on c743c8584d20ac2c74cacf8fee7fa6bd, which removed Prettier, with some simple rules in a format that's understood by most editors and some opinionated code formatters (like Prettier). This should help keep less obvious things - like tabs vs spaces and CRLF vs LF - from working their way into the codebase, but stops short of making more destructive formatting changes. * Allow destructive formatting forced by an update to `prettier`.
* chore(deps): update dependency prettier to v1.18.2 * Apply the same Prettier changes that were applied to Apollo Server For more information see: 55312289116d * Introduce an `.editorconfig`. Commit message mostly lifted from 29e563df544. Follow up on c743c8584d20ac2c74cacf8fee7fa6bd, which removed Prettier, with some simple rules in a format that's understood by most editors and some opinionated code formatters (like Prettier). This should help keep less obvious things - like tabs vs spaces and CRLF vs LF - from working their way into the codebase, but stops short of making more destructive formatting changes. * Allow destructive formatting forced by an update to `prettier`.
Currently only uses the fetch API, but would be great to have graphiql's
fetcher
to return an Observable to support testing subscriptions.Details here: graphql/graphiql#104
Hoping to put a PR together, but want to get this documented in-case someone beats me to it 😄
The text was updated successfully, but these errors were encountered: