Skip to content

Commit 9b55bd2

Browse files
committed
Fixed bug, would not serialize id.
1 parent 6cabcc6 commit 9b55bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scalars/object-id.scalar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ObjectIdScalar {
1111
}
1212

1313
serialize(value: Types.ObjectId) {
14-
return value.toHexString; // value sent to the client
14+
return value.toHexString(); // value sent to the client
1515
}
1616

1717
parseLiteral(ast: ASTNode) {

0 commit comments

Comments
 (0)