Were you ever frustrated that wix-data does not allow you to read your own writes, because of eventual consistency?
We have a solution for you - consistent reads!
You can read your own writes by setting a consistentRead property in the options parameter to true:
import wixData from “wix-data”;
await wixData.insert(“myCollection”, {_id: “00001”});
await wixData.get(“myCollection”, “00001”, { consistentRead: true });
It is important to note, that consistent read is a resource-expensive operation and will slow it down, thus use it wisely!