npm package doesn't have updated GraphiQLOptions for subscription config
See original GitHub issueNot sure where to report issue for npm package in itself so am reporting here. The following is the type file on the latest npm install i.e.
npm install --save express-graphql
via. renderGraphiQL.d.ts
export interface GraphiQLOptions {
/**
* An optional GraphQL string to use when no query is provided and no stored
* query exists from a previous session. If undefined is provided, GraphiQL
* will use its own default query.
*/
defaultQuery?: string;
/**
* An optional boolean which enables the header editor when true.
* Defaults to false.
*/
headerEditorEnabled?: boolean;
}
Looking at the GitHub repo it seems the additional subscriptionEndpoint?
field was added for subscription report. Versioning on npm says 0.12.0
which matches with GitHub versioning but there seems to be a discrepancy and am getting some Typescript errors when trying to use subscriptions because of it.
Seems like npm and GitHub are not in sync.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:28 (14 by maintainers)
Top Results From Across the Web
Subscriptions in Apollo Server - Apollo GraphQL Docs
When working with GraphQL subscriptions, you publish an event whenever a subscription's return value should be updated. One common cause of such an...
Read more >graphql-subscriptions - npm
Start using graphql-subscriptions in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >graphql-subscriptions | Yarn - Package Manager
GraphQL subscriptions is a simple npm package that lets you wire up GraphQL with a pubsub system (like Redis) to implement subscriptions in...
Read more >typescript-react-query - GraphQL Code Generator
Usage Requirements In order to use this GraphQL Codegen plugin, please make sure that you have GraphQL operations ( query / mutation ...
Read more >swydo:ddp-apollo - Packosphere
DDP-Apollo is one of the easiest ways to get GraphQL running for Meteor ... Doesn't require an extra websocket for GraphQL Subscriptions, because...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#764 is still blocked on some integration test suite issues I will address this weekend.
we also need to remove
graphql-subscriptions-ws
fromgraphiql/toolkit
’s optional dependencies, and cut another release of thegraphiql
monorepo.To clarify, I’ve never had publish permissions for this package. Only the ability to merge PRs
#764 will need to be completed first. I have put in a request for publish permissions again, hopefully they are granted this time!