/// Tries to find a statement with the matching ID
Tries to find a statement with the matching ID
Tries to find a statement with the matching ID
async fn find_one_statement(
        &self,
        context: &async_graphql::Context<'_>,
        id: String,
    ) -> Result<Option<Statement>> {
        let (db, _) = Context::parse(context)?;
        let result = Statement::collection(&db)
            .find_one(doc! { "_id": ObjectId::from_str(&id)? }, None)
            .await?;
        Ok(result)
    }
async fn find_one_statement ( & self , context : & async_graphql :: Context < ' _ > , id : String , ) -> Result < Option < Statement > > { let ( db , _ ) = Context :: parse ( context ) ? ; let result = Statement :: collection ( & db ) . find_one ( doc ! { " " ObjectId from_str ( id ) } , None ) . await ? ; Ok ( result ) }
Tries to find a statement with the matching ID
Tries to find a statement with the matching ID
&self
context
&async_graphql::Context<'_>
id
String