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
// Updated by mrfrase3, MIT license blah blah: https://gist.github.com/mrfrase3/6f51fb00205a97b44c2ed90b9202a419 | |
// Referenced from: https://github.com/feathersjs-ecosystem/feathers-rest/issues/76#issuecomment-252372915 | |
const { checkContext } = require('feathers-hooks-common'); | |
const { filterQuery } = require('@feathersjs/adapter-commons'); | |
const errors = require('@feathersjs/errors'); | |
const mongoose = require('mongoose'); | |
// exta operators to allow, remove any you want to restrict | |
const operators = [ |
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
#!/bin/bash | |
# Author: mrfrase3 | |
# run: | |
# chmod +x ./transfer.sh | |
# ./transfer.sh <oldURI> <newURI> <oldDBName> <newDBName> | |
# e.g. | |
# ./transfer.sh "mongodb://olduser:[email protected]/old-db" "mongodb://newuser:[email protected]/new-db" "old-db" "new-db" |