// Create three `person` records db.create(Resource::from(("person","one"))).await?; db.create(Resource::from(("person","two"))).await?; db.create(Resource::from(("person","three"))).await?;
// Create three `person` records db.create(Resource::from(("person","one"))).await?; db.create(Resource::from(("person","two"))).await?; db.create(Resource::from(("person","three"))).await?;
While SurrealQL's DELETE statement returns an empty array by default, this function translates into a query that adds a RETURN BEFORE clause to return the deleted items.