Skip to main content

Constants for the fields of the /query/graph request.

Option fields

options

Constants for options.

pub const AND_LABELS: &str = “and_labels”;

If set to true, the result of the query has entities that satisfy all of the target labels, instead of any.

pub const FALSE: &str = “false”;
pub const FIND_COMMON_LABELS: &str = “find_common_labels”;

If set to true, for many-to-many queries or multi-level traversals, it lists the common labels between the source and target nodes and edge labels in each path. Otherwise (zero rings), it’ll list all labels of the node(s) queried.

pub const FORCE_UNDIRECTED: &str = “force_undirected”;

If set to true, all inbound edges and outbound edges relative to the node will be returned. If set to false, only outbound edges relative to the node will be returned. This parameter is only applicable if the queried graph graph_name is directed and when querying nodes. Consult Directed Graphs for more details.

pub const LIMIT: &str = “limit”;

When specified (>0), limits the number of query results. The size of the nodes table will be limited by the limit value.

pub const OUTPUT_CHARN_LENGTH: &str = “output_charn_length”;

When specified (>0 and <=256), limits the number of char length on the output tables for string based nodes. The default length is 64.

pub const OUTPUT_WKT_PATH: &str = “output_wkt_path”;

If true then concatenated wkt line segments will be added as the WKT column of the adjacency table.

pub const SERVER_ID: &str = “server_id”;

Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth.

pub const TRUE: &str = “true”;