o

mongo4m

BsonUtil

object BsonUtil

TODO find or create a library which maps BsonValues to circe json types

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BsonUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asBson(json: Json): BsonValue
  5. def asDocument[A](value: A)(implicit arg0: Encoder[A]): BsonDocument
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bsonAsDocument(bson: Bson)(implicit registry: CodecRegistry = defaultRegistry): BsonDocument
  8. def bsonValueAsJson(value: BsonValue): Json
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. var defaultRegistry: CodecRegistry
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def fromBson(bson: String): Try[Json]
  15. def fromBson(doc: Document): Try[Json]
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def idForDocument(doc: Document): String
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def numAsBson(jsonNum: JsonNumber): BsonNumber
  24. def parse[A](doc: Document)(implicit arg0: Decoder[A]): Either[Error, A]
  25. def sanitizeFromBson(bsonValue: Json): Json

    BSON will read back numeric values as:

    BSON will read back numeric values as:

    { "aLong" : { "$numberLong" : "123" } }

    Which sucks. This hack turns it into:

    {
     "aLong" : "123"
    }
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. object codec

Inherited from AnyRef

Inherited from Any

Ungrouped