question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm package doesn't have updated GraphiQLOptions for subscription config

See original GitHub issue

Not 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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
acaocommented, Jul 9, 2021

#764 is still blocked on some integration test suite issues I will address this weekend.

we also need to remove graphql-subscriptions-ws from graphiql/toolkit’s optional dependencies, and cut another release of the graphiql monorepo.

2reactions
acaocommented, Jul 7, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found