@brief Select all vertices targeted by the edges selected before. `graph_query.toVertices(examples)` Creates an AQL statement to select the set of vertices where the edges selected in the step before end in. This includes all vertices contained in *_to* attribute of the edges. The resulting set of vertices can be filtered by defining one or more *examples*. @PARAMS @PARAM{examples, object, optional} See [Definition of examples](#definition-of-examples) @EXAMPLES To request unfiltered target vertices: @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLToVerticesUnfiltered} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._edges({type: "married"}); query.toVertices().toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT To request filtered target vertices by a single example: @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLToVerticesFilteredSingle} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._edges({type: "married"}); query.toVertices({name: "Bob"}).toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT To request filtered target vertices by multiple examples: @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLToVerticesFilteredMultiple} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._edges({type: "married"}); query.toVertices([{name: "Bob"}, {name: "Diana"}]).toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT