Skip to content

Commit f5fa838

Browse files
authored
Update src/resolvers/updateOne.ts
1 parent 040dbad commit f5fa838

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/resolvers/updateOne.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ export default function updateOne<TSource = Document, TContext = any>(
9797
doc.set(recordData);
9898

9999
const validationErrors = doc.validateSync();
100-
let errors: any[];
100+
let errors: {
101+
path: string;
102+
messages: string[];
103+
}[];
101104
if (validationErrors && validationErrors.errors) {
102105
errors = [];
103106
Object.keys(validationErrors.errors).forEach((key) => {

0 commit comments

Comments
 (0)