This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Bagel = require('@bageldb/bagel-db') | |
const dev = new Bagel(process.env.DEV_TOKEN) // needs write access | |
const prod = new Bagel(process.env.PROD_TOKEN) // must have read access | |
// mark the collections you want to copy (ensure the tokens have the right permissions) | |
const collections =[ | |
// "clients", "testimonials", ... | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.js 8 hrs 54 mins █████████▒░░░░░░░░░░ 32.4% | |
Python 8 hrs 6 mins ████████▓░░░░░░░░░░░ 29.4% | |
TypeScript 7 hrs 33 mins ████████▒░░░░░░░░░░░ 27.4% | |
JSON 47 mins ███▒░░░░░░░░░░░░░░░░ 2.9% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
waka-box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final aggSteps = [ | |
{ | |
"\$match": { | |
"region.itemRefID": "6268a16f964b7b20e3d6beb2", | |
"reportType.itemRefID": {"\$ne": "60fbda43f3b16318ac07c79c"}, | |
"reportStatus._id": "c2rmj8223akg00drt34g", | |
}, | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AggregationOperatorsArg } from "@bageldb/bagel-db/dist/interfaces" | |
import { db } from "../bageldb" | |
// NOTE: currently only works with following version ! "@bageldb/bagel-db": "^0.4.30-beta.0.03", | |
const aggSteps: AggregationOperatorsArg = [ | |
{ | |
$match: { | |
activeJourneyId: { | |
$exists: true, | |
}, |