Skip to content

Commit 500945d

Browse files
committed
Return null for nullValue instead of undefined
1 parent 656cbd6 commit 500945d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collections/deserialize/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class Deserialize {
329329
if (value.blobValue !== undefined) return value.blobValue;
330330
if (value.geoValue !== undefined) return value.geoValue;
331331
if (value.phoneValue !== undefined) return value.phoneValue;
332-
if (value.nullValue !== undefined) return undefined;
332+
if (value.nullValue !== undefined) return null;
333333
throw new WeaviateDeserializationError(`Unknown value type: ${JSON.stringify(value, null, 2)}`);
334334
}
335335

0 commit comments

Comments
 (0)