Schema API improvements

Offen
#8 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@nikgraf arbeitet bereits daran.

Seit 06.11.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
22
Forks
12
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus graphprotocol/hypergraph

Alle Issues in graphprotocol/hypergraph

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.