@@ -56,54 +56,53 @@ export function getQueryITC<TContext>(opts: CommonOpts<TContext>): InputTypeComp
56
56
return opts . getOrCreateITC ( name , ( ) => ( {
57
57
name,
58
58
description,
59
- // $FlowFixMe
60
59
fields : {
61
- match_all : ( ) => getMatchAllITC ( opts ) ,
60
+ match_all : getMatchAllITC ( opts ) ,
62
61
63
62
// 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 ) ,
69
68
70
69
// 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 ) ,
78
77
79
78
// 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 ) ,
90
89
91
90
// 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 ) ,
96
95
97
96
// 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 ) ,
101
100
102
101
// 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 ) ,
107
106
} ,
108
107
} ) ) ;
109
108
}
0 commit comments