Skip to content

Commit

Permalink
retain computed fields from VolumeMetadata, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tayloraswift committed Nov 3, 2024
1 parent d4160b6 commit ac8f473
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/UnidocQueries/Volumes/Unidoc.VertexQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ extension Unidoc.VertexQuery:Mongo.PipelineQuery
$0[stage: .project, using: Output.CodingKey.self]
{
$0[.matches] = true
$0[.principalVolume] = Unidoc.VolumeMetadata.StoredFields.init()
$0[.canonicalVolume] = Unidoc.VolumeMetadata.StoredFields.init()
// Right now, we still need these in order to fully utilize the index
// on the vertex collection.
$0[.principalVolume] = true // Unidoc.VolumeMetadata.StoredFields.init()
$0[.canonicalVolume] = true // Unidoc.VolumeMetadata.StoredFields.init()
}
}
}
Expand Down

0 comments on commit ac8f473

Please sign in to comment.