Skip to main content
POST
Expand rows through the graph

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

database
string
required

Target database.

Body

application/json

POST /v1/graph_expand/{database}: the rows a retrieval returned, to be expanded to the rows of other tables they point at. An unknown field is refused.

rows
object[]
required

The rows a search or a statement returned, each a JSON object of column name to cell value, 200 at most (the walk seeds from the first twenty). A row carrying _id seeds by it; one carrying the table's key columns, or a path and a start line, is looked up; any other seeds nothing.

table_name
string
required

The table the rows came from.

query
string | null

The words the retrieval searched by, when it was a search: the facts matching them come back too, from every document, not only from the rows the search returned.

statement
string | null

The statement that returned the rows, when it was one: the words its keyword search ranks by are searched in the facts like a query.

Response

The rows of every other table the given rows point at, by table, strongest first: the rows a verified join reaches from their key values, the definitions of the names a code row uses (relation: defines <name>, first), and the rows the service read as mentioning the same entities. Each row carries the table's placing columns and its text cut short. seeds is how many of the given rows seeded the walk; note says why nothing was reached when nothing was.

The answer: the tables reached and their rows, the facts the graph holds for them, how many of the given rows seeded the walk, and a note when nothing was reached and why.

connected
object[]
required

The other tables reached and their rows, one entry per table.

seeds
integer
required

How many of the given rows seeded the walk.

Required range: x >= 0
facts
object[]

The facts the graph holds for the given rows. Absent when there are none.

note
string | null

Why nothing was reached, when nothing was. Absent otherwise.