@@ -15,7 +15,7 @@ import {
|
||||
import formatName from '../utilities/formatName';
|
||||
import withOperators from './withOperators';
|
||||
import operators from './operators';
|
||||
import fieldToSchemaMap from './fieldToSchemaMap';
|
||||
import fieldToSchemaMap from './fieldToWhereInputSchemaMap';
|
||||
|
||||
// buildWhereInputType is similar to buildObjectType and operates
|
||||
// on a field basis with a few distinct differences.
|
||||
|
||||
@@ -169,12 +169,6 @@ const fieldToSchemaMap: (parentName: string) => any = (parentName: string) => ({
|
||||
});
|
||||
}
|
||||
|
||||
if (field.hasMany) {
|
||||
return {
|
||||
type: new GraphQLList(type),
|
||||
};
|
||||
}
|
||||
|
||||
return { type };
|
||||
},
|
||||
upload: (field: UploadField) => ({
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
fieldIsPresentationalOnly,
|
||||
FieldWithSubFields,
|
||||
} from '../../fields/config/types';
|
||||
import fieldToSchemaMap from './fieldToSchemaMap';
|
||||
import fieldToSchemaMap from './fieldToWhereInputSchemaMap';
|
||||
|
||||
const recursivelyBuildNestedPaths = (parentName: string, field: FieldWithSubFields & FieldAffectingData) => {
|
||||
const nestedPaths = field.fields.reduce((nestedFields, nestedField) => {
|
||||
|
||||
Reference in New Issue
Block a user