graphprotocol / graphprotocol/hypergraph

Schema API improvements

Aperta
#8 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@nikgraf ci sta già lavorando.

Dal 6/11/2024.

Lingua principale
TypeScript
Stelle
22
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

createEntity

  • allow to created nested entities
  • allow to created nested entities (recursively)
  • typing for creating nested entities
  • typing for creating nested entities (recursively)
  • schema validation for nested entities?
  • relations should be defined on both end
  • decide and implement how relations are stored
  • allow to provide IDs for relations ["abc", "def"]
  • allow to mix objects and IDs for relations ["abc", { id: "def", name: "lala" }] (if id: def exists it's an upsert for the attributes that are included)
  • make all fields optional
  • add implicit entity properties (e.g. name, description, cover)
  • make sure to only return get fields which are defined in the query

useQuery

  • resolve nested entities
  • resolve nested entities (recursively)
  • typing for nested entities
  • typing for nested entities (recursively)
  • filters for text, number, checkbox
  • reverse relationship queries?
  • make all fields optional
  • always include the id and types
  • return array instead of object
  • handle circular dependencies
  • add implicit entity properties (e.g. name, description, cover)

getById

  • implement

updateEntity

  • implement

deleteEntity

  • implement

setTriple

  • define API

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.