Giter Site home page Giter Site logo

graphiql-explorer-sql's People

Contributors

olegabu avatar rogoja avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

summarydev

graphiql-explorer-sql's Issues

Subsriptions to update the results pane via websocket

GraphQL queries can be turned into subscriptions that update asynchronously when a query result changes. You can subscribe to get updates via websocket using cli graphqrl or in the GraphiQL GUI on Hasura's website: turn a query into a subscription and see the right results pane turn into a waiting mode and update on a change to the query result. If you do the same in our IDE you'll get an error subscriptions are not supported over HTTP, use websockets instead.
Figure out how this is done in Hasura or in GraphiQL IDE and implement.

You can test subscriptions by querying for the latest block even though they come infrequently, like so: replace query with subscription and give the next block number you expect to receive from the sequencer.

query raw_block {
  raw_block_by_pk(block_number: 267000) {
    raw
  }
}

Streamline the SQL editor style

The SQL editor pane is taken as a component from another web app with their own styles they don't fit our IDE look. Correct the styles, widths and position within the SQL pane so it looks like an integral part of the IDE.

Create a mock API for SQL editor

The SQL editor should send its requests to Hasura API or elsewhere -- they deserve a separate repo. In this repo create a minimal express API that returns dummy data in response to a GET request from the SQL editor pane. When no API endpoint specified by an env variable at build time the SQL editor will call this dummy API and will load its response into its results table. Later on this dummy API can be used as a blueprint for the real API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.