diff --git a/docs/resolvers/custom-resolvers.md b/docs/resolvers/custom-resolvers.md index 7991693c68..3f147603fc 100644 --- a/docs/resolvers/custom-resolvers.md +++ b/docs/resolvers/custom-resolvers.md @@ -146,7 +146,7 @@ const { items: allNotes } = await context.Notes.findBy(args, context, info); const noteIds = allNotes.map(({ id }) => id); // retrieves comments owned by notes selected above. Specifying the "comments" path so start selection -const { items: comments } = await context.Comment.findBy({noteId: {in: noteIds}}, context, info, 'comments'); +const { items: comments } = await context.Comment.findBy({ filter: { noteId: { in: noteIds } } }, context, info, 'comments'); // ... do the rest ``` diff --git a/website/versioned_docs/version-0.16.x/resolvers/custom-resolvers.md b/website/versioned_docs/version-0.16.x/resolvers/custom-resolvers.md index 674591a20c..a726526391 100644 --- a/website/versioned_docs/version-0.16.x/resolvers/custom-resolvers.md +++ b/website/versioned_docs/version-0.16.x/resolvers/custom-resolvers.md @@ -146,7 +146,7 @@ const { items: allNotes } = await context.Notes.findBy(args, context, info); const noteIds = allNotes.map(({ id }) => id); // retrieves comments owned by notes selected above. Specifying the "comments" path so start selection -const { items: comments } = await context.Comment.findBy({noteId: {in: noteIds}}, context, info, 'comments'); +const { items: comments } = await context.Comment.findBy({ filter: { noteId: { in: noteIds } } }, context, info, 'comments'); // ... do the rest ``` diff --git a/website/versioned_docs/version-1.0/resolvers/custom-resolvers.md b/website/versioned_docs/version-1.0/resolvers/custom-resolvers.md index 7991693c68..3f147603fc 100644 --- a/website/versioned_docs/version-1.0/resolvers/custom-resolvers.md +++ b/website/versioned_docs/version-1.0/resolvers/custom-resolvers.md @@ -146,7 +146,7 @@ const { items: allNotes } = await context.Notes.findBy(args, context, info); const noteIds = allNotes.map(({ id }) => id); // retrieves comments owned by notes selected above. Specifying the "comments" path so start selection -const { items: comments } = await context.Comment.findBy({noteId: {in: noteIds}}, context, info, 'comments'); +const { items: comments } = await context.Comment.findBy({ filter: { noteId: { in: noteIds } } }, context, info, 'comments'); // ... do the rest ```