This file contains hidden or 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 hidden or 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 17 hrs 12 mins βββββββββββββββββββββ 47.1% | |
| TypeScript 13 hrs 38 mins βββββββββββββββββββββ 37.3% | |
| JSON 2 hrs 29 mins βββββββββββββββββββββ 6.8% | |
| Markdown 1 hr 47 mins βββββββββββββββββββββ 4.9% | |
| TSConfig 38 mins βββββββββββββββββββββ 1.8% |
This file contains hidden or 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 hidden or 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 hidden or 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, | |
| }, |