toBSON

ignoreDefaults does nothing, is just for compatibility with the other toBSON.

  1. auto ref toBSON(BSON ob, bool ignoreDefaults)
    ref
    toBSON
    (,
    bool ignoreDefaults = true
    )
  2. auto toBSON(Type instance, bool ignoreDefaults)

Meta