graphprotocol / graphprotocol/graph-node

Enhance store for querying multiple entities

オープン
#2,872 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area/store enhancement
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

Currently the host store interface only supports interacting with one entity at a time:

/**
 * Host store interface.
 */
export declare namespace store {
  function get(entity: string, id: string): Entity | null
  function set(entity: string, id: string, data: Entity): void
  function remove(entity: string, id: string): void
}

What is the expected behavior?

The store should expose functions similar to the GraphQL interface like:

let entities = Entity.findAll(where: { blockHash: "0xdeadbeef" });

Or even expose the SQL interface?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue に示されている host store インターフェースから始め、単一エンティティの取得、設定、削除の各操作を、GraphQL の Entity.findAll の例と比較します。複数エンティティのクエリや SQL の公開を意図しているのかを明確にします。合意されたクエリインターフェースと定義済みの動作があれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, rust, sql
領域
api, backend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。