Drop _Join collection when deleting a relation field

This commit is contained in:
Drew Gross
2016-02-09 20:16:53 -08:00
parent f07836e33f
commit b0c4b8f6ce
3 changed files with 103 additions and 4 deletions

View File

@@ -43,8 +43,6 @@ ExportAdapter.prototype.connect = function() {
// Returns a promise for a Mongo collection.
// Generally just for internal use.
var joinRegex = /^_Join:[A-Za-z0-9_]+:[A-Za-z0-9_]+/;
var otherRegex = /^[A-Za-z][A-Za-z0-9_]*$/;
ExportAdapter.prototype.collection = function(className) {
if (!Schema.classNameIsValid(className)) {
throw new Parse.Error(Parse.Error.INVALID_CLASS_NAME,