graphReadWithHttpInfo method
Read the assertions this organization has recorded
Note: This method returns the HTTP Response.
Parameters:
-
String entity: Entity narrows to what was asserted ABOUT one entity. Absent matches every entity.
-
String relation: Relation narrows to one relation. Absent matches every relation.
-
String value: Value narrows to assertions pointing AT one value, which is how the edges into an entity are read.
-
String asOf: AsOf bounds the read to what was knowable at an instant, RFC 3339. Absent reads everything this plane holds.
-
int limit: Limit caps how many assertions come back. Absent, zero, or anything above the walk ceiling is the ceiling.
Implementation
Future<Response> graphReadWithHttpInfo({ String? entity, String? relation, String? value, String? asOf, int? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/graph';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (entity != null) {
queryParams.addAll(_queryParams('', 'entity', entity));
}
if (relation != null) {
queryParams.addAll(_queryParams('', 'relation', relation));
}
if (value != null) {
queryParams.addAll(_queryParams('', 'value', value));
}
if (asOf != null) {
queryParams.addAll(_queryParams('', 'as_of', asOf));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}