Hey guys, I'm having trouble getting started with ...
# orm-help
a
Hey guys, I'm having trouble getting started with the Rust FaunaDB crate Having an error with the following code:
Copy code
let obj = {
    let obj = Object::default();

    obj.insert("id", store.id);
    obj.insert("active", store.active);
    obj.insert("paid", store.paid);

    obj;
};

let query = client.query(Create::new(Ref::class("stores"), obj));
With the error:
Copy code
21 |         let query = client.query(Create::new(Ref::class("stores"), obj));
   |                                  ^^^^^^^^^^^ the trait `std::convert::From<()>` is not implemented for `faunadb::prelude::Query<'_>`
EDIT: Nevermind... I relalised I had a dumb mistake. My function was:
Copy code
pub fn new(client: &Client, &store: &Self) {
But should've been:
Copy code
pub fn new(client: &Client, store: &Self) {
🦀 2