olegabu / graphiql-explorer-sql Goto Github PK
View Code? Open in Web Editor NEWGraphiql with explorer and minimal sql editor
License: Apache License 2.0
Graphiql with explorer and minimal sql editor
License: Apache License 2.0
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
}
}
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.
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.
We have the graphql url and queries hardcoded, move them into env variables so they can be updated at build time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.