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.
1 parent 4a854d2 commit 2e26806Copy full SHA for 2e26806
src/resolvers/findByIds.js
@@ -46,7 +46,7 @@ export default function findByIds(
46
resolve: (resolveParams: ExtendedResolveParams) => {
47
const args = resolveParams.args || {};
48
49
- if (!Array.isArray(args._ids)) {
+ if (!Array.isArray(args._ids) || args._ids.length === 0) {
50
return Promise.resolve([]);
51
}
52
0 commit comments