UNPKG

@schamane/small-graphql-mongoose-middleware

Version:

![Check Code](https://github.com/schamane/small-graphql-mongoose-middleware/workflows/Check%20Code/badge.svg)

10 lines (9 loc) 798 B
import { Filter, QueryFieldsType } from '../datasources/mongo'; export declare const mapFilter: (filter: Filter, fieldTranslations: QueryFieldsType) => {}; export declare const filterToQuery: (filter: Filter, fieldTranslations: QueryFieldsType) => {}; export declare const filtersToQuery: (filters: Filter[], fieldTranslations: QueryFieldsType) => {}[]; export declare const translateSorter: (field: string, fieldTranslations: QueryFieldsType) => string | string[]; export declare const translationsFieldPath: (field: string) => string; export declare const translatedFieldLanguagePath: (field: string) => string; export declare const translationsFieldStringPath: (attribute: string) => string; export declare const languageFilter: (attribute: string, language: string) => Record<string, unknown>;