mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix Graphql filter selection (#4882)
- fix fall through in switch statement - remove duplicate case
This commit is contained in:
@@ -495,7 +495,6 @@ export class GraphQLService {
|
||||
const graphqlType = getGraphQLType(field.type);
|
||||
|
||||
let filterOperatorType: InputTypeComposer;
|
||||
|
||||
switch (graphqlType) {
|
||||
case GraphQLBoolean:
|
||||
filterOperatorType = BooleanFilterOperators;
|
||||
@@ -503,6 +502,7 @@ export class GraphQLService {
|
||||
case GraphQLInt:
|
||||
case GraphQLFloat:
|
||||
filterOperatorType = NumberFilterOperators;
|
||||
break;
|
||||
default:
|
||||
filterOperatorType = StringFilterOperators;
|
||||
}
|
||||
@@ -1035,8 +1035,6 @@ export class GraphQLService {
|
||||
return new FilesService(opts);
|
||||
case 'directus_folders':
|
||||
return new FoldersService(opts);
|
||||
case 'directus_folders':
|
||||
return new FoldersService(opts);
|
||||
case 'directus_permissions':
|
||||
return new PermissionsService(opts);
|
||||
case 'directus_presets':
|
||||
|
||||
Reference in New Issue
Block a user