pub fn eq_condition(field: &str, value: Value) -> Expression<Value>Expand description
Build an eq condition field = value for use with Table<RestApi, _>::add_condition. Produces the same shape as
vantage_table::operation::Operation::eq would for backends that
support it.
ⓘ
use vantage_api_client::eq_condition;
use serde_json::json;
let mut comments = Table::<RestApi, EmptyEntity>::new("comments", api);
comments.add_condition(eq_condition("postId", json!(1)));