feat: Deprecation DEPPS9: LiveQuery fields option is renamed to keys (#8852)
BREAKING CHANGE: LiveQuery `fields` option is renamed to `keys`
This commit is contained in:
@@ -23,7 +23,6 @@ import { LRUCache as LRU } from 'lru-cache';
|
||||
import UserRouter from '../Routers/UsersRouter';
|
||||
import DatabaseController from '../Controllers/DatabaseController';
|
||||
import { isDeepStrictEqual } from 'util';
|
||||
import Deprecator from '../Deprecator/Deprecator';
|
||||
import deepcopy from 'deepcopy';
|
||||
|
||||
class ParseLiveQueryServer {
|
||||
@@ -920,13 +919,6 @@ class ParseLiveQueryServer {
|
||||
? request.query.keys
|
||||
: request.query.keys.split(',');
|
||||
}
|
||||
if (request.query.fields) {
|
||||
subscriptionInfo.keys = request.query.fields;
|
||||
Deprecator.logRuntimeDeprecation({
|
||||
usage: `Subscribing using fields parameter`,
|
||||
solution: `Subscribe using "keys" instead.`,
|
||||
});
|
||||
}
|
||||
if (request.query.watch) {
|
||||
subscriptionInfo.watch = request.query.watch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user