Skip to content

Commit

Permalink
fix: rename deprecated method getTypeAsRequired on getTypeNonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Apr 27, 2018
1 parent 9414a2a commit 799954d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/resolvers/helpers/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const filterHelperArgs = (

return {
filter: {
type: opts.isRequired ? itc.getTypeAsRequired() : itc.getType(),
type: opts.isRequired ? itc.getTypeNonNull() : itc.getType(),
description: opts.onlyIndexed ? 'Filter only by indexed fields' : 'Filter by fields',
},
};
Expand Down
4 changes: 2 additions & 2 deletions src/resolvers/helpers/filterOperators.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function addFilterOperators(
}

itc.addFields({
OR: [itc.getTypeAsRequired()],
AND: [itc.getTypeAsRequired()],
OR: [itc.getTypeNonNull()],
AND: [itc.getTypeNonNull()],
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/helpers/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const recordHelperArgs = (

return {
record: {
type: opts.isRequired ? recordITC.getTypeAsRequired() : recordITC.getType(),
type: opts.isRequired ? recordITC.getTypeNonNull() : recordITC.getType(),
},
};
};

0 comments on commit 799954d

Please sign in to comment.