Edge
The edge schema defines how PuppyGraph edge maps to the catalog.
MappedTableSourceSchema
AttributeSchema
Last updated
The edge schema defines how PuppyGraph edge maps to the catalog.
Last updated
Field | Type | Description |
---|---|---|
Field | Type | Description |
---|---|---|
label
string
A user-provided name for reference in queries
from
string
The from vertex label
to
string
The to vertex label
mappedTableSource
MappedTableSourceSchema
Specifies how edge maps to catalog
attributes
[]AttributeSchema
Specifies additional attribute for queries
catalog
string
Catalog name matches the specified catalog schema.
schema
string
Schema name matches the schema inside the catalog.
table
string
Table name matches the table inside the catalog.
metaFields
{"id": "<string_value>", "from": "<string_value>", "to": "<string_value>"}
id - The edge id fields inside the data source table. The id field must be string and unique.
from, to - The from, to fields inside the data source table. The from and to field must be the id of the specified vertex.
name
string
The field name. The name must match the field name inside the data source table.
type
string
The data type of the attribute. Please refer to the Attribute Types for specifications.