JS SDK overview
The main JavaScript package is @barq/barq.
It provides:
Barq.open()- object schemas
- write transactions
- query results
- listeners
- value types under
Barq.Types - sync users through
Barq.User.fromToken()
Package
Section titled “Package”bun add @barq/barqImport
Section titled “Import”import Barq from '@barq/barq';Value Types
Section titled “Value Types”Barq ships its own value types. It does not require a third-party BSON package.
Barq.Types.ObjectIdBarq.Types.UUIDBarq.Types.Decimal128Barq.Types.BinaryBarq.Types.EJSON