hasura / hasura/graphql-engine

Code Exporter does not work with subscriptions.

Open
#9,385 0 comments 0 reactions 0 assignees View on GitHub
k/bug t/product-platform
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.15.1

CLI Version (for CLI related issue):

### Environment
OSS

### What is the current behavior?

Currently, the code exporter seems to only work for queries and mutations. For subscriptions its says "The query is invalid.
The generated code will appear here once the errors in the query editor are resolved."

### What is the expected behaviour?
Code exporter generates code snippet for subscriptions

### How to reproduce the issue?
Run the code exporter with any subscription or streaming subscription.

### Screenshots or Screencast
Screen Shot 2023-01-18 at 10 35 11 AM

### Please provide any traces or logs that could help here.

NA

### Any possible solutions/workarounds you're aware of?

NA

### Keywords

NA

Contributor guide

Open the contributing guide

Research direction

Start at the Code Exporter entry point and reproduce the issue with a query, mutation, subscription, and streaming subscription. Compare how subscriptions are handled in the query editor, and consider the issue done when the exporter generates a code snippet for subscription operations without reporting that the query is invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.