uprtcl / js-uprtcl-server

Uprtcl JS web-server service provider

Home Page:http://uprtcl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add links next to children

pepoospina opened this issue · comments

commented

Assume head updates include, beside the list of added/removed Chidren, the list of added/removed Links. Store them as edges inside the updatePerspectiveQuery function, just next to where the perspective head is set.

These edges are provided by the frontend, and will be used by the first explore/search feature.

To add the edges these need to be added to the DB schema, inside the Perspective type, and they should be marged as @reverse indexed to be able to query ~linksTo.

Use the children edges as an example in the schema and for indexing.

From Pepo:

1. Create the "concept node" as a placeholder
2. Create three blog posts as posts with a link to the concept node
3. Explore for all nodes with links to the concept node and get the three posts

First you need to add the concept of edges.

commented

The comment above is for changes on the frontend. That is now another issue. That depends on this one