1.6 KiB
@brief Select all inbound edges for the vertices selected before.
graph_query.inEdges(examples)
Creates an AQL statement to select all inbound edges for each of the vertices selected in the step before. The resulting set of edges can be filtered by defining one or more examples.
@PARAMS
@PARAM{examples, object, optional} See Definition of examples
@EXAMPLES
To request unfiltered inbound edges:
@EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLInEdgesUnfiltered} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._vertices([{name: "Alice"}, {name: "Bob"}]); query.inEdges().toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT
To request filtered inbound edges by a single example:
@EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLInEdgesFilteredSingle} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._vertices([{name: "Alice"}, {name: "Bob"}]); query.inEdges({type: "married"}).toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT
To request filtered inbound edges by multiple examples:
@EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLInEdgesFilteredMultiple} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._vertices([{name: "Alice"}, {name: "Bob"}]); query.inEdges([{type: "married"}, {type: "friend"}]).toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT