import { flatten } from "https://deno.land/x/kvdex@v0.3.0/mod.ts";
Flattens a document at the top level, placing the id and versionstamp together with the document data. Only applicable to documents of type Model.
Example:
const userDoc = await db.users.find("oliver")
const user = flatten(userDoc)
Type Parameters
T extends Model