getEdges method
- String kref, {
- String? edgeTypeFilter,
- EdgeDirection? direction,
inherited
Gets edges for a revision.
kref is the revision's kref URI.
edgeTypeFilter filters by edge type (empty for all types).
direction specifies which edges to return:
- OUTGOING: edges where this revision is the source
- INCOMING: edges where this revision is the target
- BOTH: both directions
Implementation
Future<GetEdgesResponse> getEdges(
String kref, {
String? edgeTypeFilter,
EdgeDirection? direction,
}) async {
final request = GetEdgesRequest()..kref = Kref(uri: kref);
if (edgeTypeFilter != null && edgeTypeFilter.isNotEmpty) {
request.edgeTypeFilter = edgeTypeFilter;
}
if (direction != null) {
request.direction = direction;
}
return stub.getEdges(request, options: callOptions);
}