pub struct Graph { /* private fields */ }
Implementations
sourceimpl Graph
impl Graph
pub async fn new<'a, F: Fn(&mut GraphBuilder)>(build: F) -> Graph
pub async fn find_unique(
&self,
model: &str,
finder: &JsonValue,
mutation_mode: bool
) -> Result<Object, ActionError>
pub async fn find_first(
&self,
model: &str,
finder: &JsonValue,
mutation_mode: bool
) -> Result<Object, ActionError>
pub async fn find_many(
&self,
model: &str,
finder: &JsonValue,
mutation_mode: bool
) -> Result<Vec<Object>, ActionError>
pub async fn count(
&self,
model: &str,
finder: &JsonValue
) -> Result<usize, ActionError>
pub async fn aggregate(
&self,
model: &str,
finder: &JsonValue
) -> Result<JsonValue, ActionError>
pub async fn group_by(
&self,
model: &str,
finder: &JsonValue
) -> Result<JsonValue, ActionError>
pub fn create_object(
&self,
model: &str,
initial: JsonValue
) -> Result<Object, ActionError>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more