File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export function composeWithMongoose(
3232 prepareFields ( typeComposer , opts . fields ) ;
3333 }
3434
35+ // $FlowFixMe
3536 typeComposer . setRecordIdFn ( source => ( source ? `${ source . _id } ` : '' ) ) ;
3637
3738 createInputType ( typeComposer , opts . inputType ) ;
Original file line number Diff line number Diff line change 22/* eslint-disable */
33
44import type { TypeComposer } from 'graphql-compose' ;
5+ import type { ProjectionType } from 'graphql-compose/lib/definition' ;
56import type { connectionSortMapOpts as _connectionSortMapOpts } from 'graphql-compose-connection/lib/definition' ;
67export type connectionSortMapOpts = _connectionSortMapOpts ;
78
@@ -100,6 +101,7 @@ export type GraphQLResolveInfo = _GraphQLResolveInfo;
100101export type ResolverMWResolveFn = _ResolverMWResolveFn ;
101102export type ExtendedResolveParams = ResolveParams & {
102103 query : MongooseQuery ,
104+ projection : ProjectionType ,
103105} ;
104106
105107
@@ -191,6 +193,7 @@ export type filterHelperArgsOpts = {
191193 onlyIndexed ?: boolean ,
192194 requiredFields ?: string | string [ ] ,
193195 operators ?: filterOperatorsOpts | false ,
196+ removeFields ?: string | string [ ] ,
194197} ;
195198
196199export type filterOperatorNames = 'gt' | 'gte' | 'lt' | 'lte' | 'ne' | 'in[]' | 'nin[]' ;
Original file line number Diff line number Diff line change @@ -216,4 +216,6 @@ export function addFieldsWithOperator(
216216 description : 'List of fields that can be filtered via operators' ,
217217 } ) ;
218218 }
219+
220+ return operatorsComposer ;
219221}
You can’t perform that action at this time.
0 commit comments