db.indexes.create("*/media", "timestamp")
.then(() => {
return db.query("*/media") /
.take(100)
.sort("timestamp", false)
.get();
})
.then((postSnapshots) => {
console.log(postSnapshots)
});
The above code returns an error from line 1095 in data-index.js. specifically this line:
const wildcardValues = childPath.match(wildcardRE).slice(1);
match() is returning null so of course it errors when trying to call slice().
Presumably I should have my data just be 1 level deeper.
The above code returns an error from line 1095 in data-index.js. specifically this line:
match()is returning null so of course it errors when trying to callslice().Presumably I should have my data just be 1 level deeper.