@@ -56,54 +56,53 @@ export function getQueryITC<TContext>(opts: CommonOpts<TContext>): InputTypeComp
5656 return opts . getOrCreateITC ( name , ( ) => ( {
5757 name,
5858 description,
59- // $FlowFixMe
6059 fields : {
61- match_all : ( ) => getMatchAllITC ( opts ) ,
60+ match_all : getMatchAllITC ( opts ) ,
6261
6362 // Compound quries
64- bool : ( ) => getBoolITC ( opts ) ,
65- constant_score : ( ) => getConstantScoreITC ( opts ) ,
66- dis_max : ( ) => getDisMaxITC ( opts ) ,
67- boosting : ( ) => getBoostingITC ( opts ) ,
68- function_score : ( ) => getFunctionScoreITC ( opts ) ,
63+ bool : getBoolITC ( opts ) ,
64+ constant_score : getConstantScoreITC ( opts ) ,
65+ dis_max : getDisMaxITC ( opts ) ,
66+ boosting : getBoostingITC ( opts ) ,
67+ function_score : getFunctionScoreITC ( opts ) ,
6968
7069 // FullText queries
71- match : ( ) => getMatchITC ( opts ) ,
72- match_phrase : ( ) => getMatchPhraseITC ( opts ) ,
73- match_phrase_prefix : ( ) => getMatchPhrasePrefixITC ( opts ) ,
74- multi_match : ( ) => getMultiMatchITC ( opts ) ,
75- common : ( ) => getCommonITC ( opts ) ,
76- query_string : ( ) => getQueryStringITC ( opts ) ,
77- simple_query_string : ( ) => getSimpleQueryStringITC ( opts ) ,
70+ match : getMatchITC ( opts ) ,
71+ match_phrase : getMatchPhraseITC ( opts ) ,
72+ match_phrase_prefix : getMatchPhrasePrefixITC ( opts ) ,
73+ multi_match : getMultiMatchITC ( opts ) ,
74+ common : getCommonITC ( opts ) ,
75+ query_string : getQueryStringITC ( opts ) ,
76+ simple_query_string : getSimpleQueryStringITC ( opts ) ,
7877
7978 // Term queries
80- exists : ( ) => getExistsITC ( opts ) ,
81- fuzzy : ( ) => getFuzzyITC ( opts ) ,
82- ids : ( ) => getIdsITC ( opts ) ,
83- prefix : ( ) => getPrefixITC ( opts ) ,
84- range : ( ) => getRangeITC ( opts ) ,
85- regexp : ( ) => getRegexpITC ( opts ) ,
86- type : ( ) => getTypeITC ( opts ) ,
87- term : ( ) => getTermITC ( opts ) ,
88- terms : ( ) => getTermsITC ( opts ) ,
89- wildcard : ( ) => getWildcardITC ( opts ) ,
79+ exists : getExistsITC ( opts ) ,
80+ fuzzy : getFuzzyITC ( opts ) ,
81+ ids : getIdsITC ( opts ) ,
82+ prefix : getPrefixITC ( opts ) ,
83+ range : getRangeITC ( opts ) ,
84+ regexp : getRegexpITC ( opts ) ,
85+ type : getTypeITC ( opts ) ,
86+ term : getTermITC ( opts ) ,
87+ terms : getTermsITC ( opts ) ,
88+ wildcard : getWildcardITC ( opts ) ,
9089
9190 // Geo queries
92- geo_bounding_box : ( ) => getGeoBoundingBoxITC ( opts ) ,
93- geo_distance : ( ) => getGeoDistanceITC ( opts ) ,
94- geo_polygon : ( ) => getGeoPolygonITC ( opts ) ,
95- geo_shape : ( ) => getGeoShapeITC ( opts ) ,
91+ geo_bounding_box : getGeoBoundingBoxITC ( opts ) ,
92+ geo_distance : getGeoDistanceITC ( opts ) ,
93+ geo_polygon : getGeoPolygonITC ( opts ) ,
94+ geo_shape : getGeoShapeITC ( opts ) ,
9695
9796 // Specialized queries
98- more_like_this : ( ) => getMoreLikeThisITC ( opts ) ,
99- percolate : ( ) => getPercolateITC ( opts ) ,
100- script : ( ) => getScriptITC ( opts ) ,
97+ more_like_this : getMoreLikeThisITC ( opts ) ,
98+ percolate : getPercolateITC ( opts ) ,
99+ script : getScriptITC ( opts ) ,
101100
102101 // Joining queries
103- has_child : ( ) => getHasChildITC ( opts ) ,
104- has_parent : ( ) => getHasParentITC ( opts ) ,
105- nested : ( ) => getNestedITC ( opts ) ,
106- parent_id : ( ) => getParentIdITC ( opts ) ,
102+ has_child : getHasChildITC ( opts ) ,
103+ has_parent : getHasParentITC ( opts ) ,
104+ nested : getNestedITC ( opts ) ,
105+ parent_id : getParentIdITC ( opts ) ,
107106 } ,
108107 } ) ) ;
109108}
0 commit comments