We're trying out Dexie.js Discussions! #1232
dfahlander
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey!, I've been using Dexie.js in my current project and loving it!, I managed to do some really cool things with it like this. const getUnuploadedImages = async query => {
return await db
.table("images")
.where("[metadata.id+uploadProgress]")
.anyOf(query)
.toArray()
} Just wanted to know if there are any plans to make Dexie.js tree shakable in the near future. It's something interesting to look into Gatsby and firebase are two solid examples of projects that take this approach. import { Dexie, table, where, anyOf, toArray} from "dexie"
const getUnuploadedImages = async query => {
const db = Dexie(config)
const _images = await table(db, "images")
const imagesQuery = where(_images, "[metadata.id+uploadProgress]")
const queryResult = anyOf(query)
const results = toArray(queryResult)
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Welcome!
We're giving Github Discussions a try. Might promote it more in future. For now, feel free to experiment with it:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions