Skip to content

Commit 067f9b6

Browse files
committed
fix #27
1 parent 45f9169 commit 067f9b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/UnidocRecords/Vertices/Volume.Vertex.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ extension Volume.Vertex:BSONDocumentEncodable
327327
bson[.symbol] = self.symbol
328328

329329
case .meta(let self):
330+
// This must have a value, otherwise it would get lost among all the file
331+
// vertices, and queries for it would be very slow.
332+
bson[.hash] = 0
333+
330334
bson[.stem] = ""
331335
bson[.abi] = self.abi
332336
bson[.dependencies] = self.dependencies.isEmpty ? nil : self.dependencies

0 commit comments

Comments
 (0)