Skip to content

Commit

Permalink
Add README and remove unnecessary static files
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed May 21, 2024
1 parent c17a4a1 commit 471d9f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 33,793 deletions.
8 changes: 8 additions & 0 deletions block-streamer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// TODO: Improve README further

Generating schema.json
graphql-client introspect-schema --output PATH_TO_SOMEWHERE HASURA_ENDPOINT/v1/graphql --header 'x-hasura-role: SOME_HASURA_ROLE'

Generating Rust types file for query
graphql-client generate --schema-path PATH_TO_SCHEMA_JSON --response-derives 'Debug' --output-directory PATH_TO_GRAPHQL_QUERIES_FOLDER PATH_TO_QUERY_GRAPHQL_FILE
After the codegen comples, you may need to manually modify the file further to resolve issues such as "super::date" not being found.
6 changes: 0 additions & 6 deletions block-streamer/graphql/darunrs_near/get_bitmaps.graphql

This file was deleted.

48 changes: 0 additions & 48 deletions block-streamer/graphql/darunrs_near/get_bitmaps.rs

This file was deleted.

Loading

0 comments on commit 471d9f0

Please sign in to comment.