KeyspaceError

An error that is thrown when a key cannot be mapped to a keyspace.

BSON.KeyspaceError.swift:10
@frozen struct KeyspaceError

Normally, the library ignores unrecognized document keys, in order to facilitate schema evolution. However, when using documents to represent arbitrary associative mappings, such as Dictionary, it is often preferable to fail decoding instead of silently dropping items.