We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getTypeAsRequired
getTypeNonNull
1 parent 7a1b3a1 commit b59e354Copy full SHA for b59e354
src/elasticDSL/Query/Compound/ConstantScore.js
@@ -19,7 +19,7 @@ export function getConstantScoreITC(opts: mixed = {}): InputTypeComposer {
19
name,
20
description,
21
fields: {
22
- filter: (() => getQueryITC(opts).getTypeAsRequired(): $FlowFixMe),
+ filter: (() => getQueryITC(opts).getTypeNonNull(): $FlowFixMe),
23
boost: 'Float!',
24
},
25
})
src/resolvers/updateById.js
@@ -43,7 +43,7 @@ export default function createUpdateByIdResolver(
43
44
const argsConfigMap = {
45
id: 'String!',
46
- record: getRecordITC(fieldMap).getTypeAsRequired(),
+ record: getRecordITC(fieldMap).getTypeNonNull(),
47
};
48
49
const type = getUpdateByIdOutputTC({ prefix, fieldMap, sourceTC });
0 commit comments