graphprotocol / graphprotocol/hypergraph
Schema API improvements
Offen
@nikgraf arbeitet bereits daran.
Seit 06.11.2024.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 22
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
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" }](ifid:defexists 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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.