What you’ll learn

  • Understand BSON and MongoDB’s document structure.
  • Perform basic CRUD operations on documents.
  • Choose between embedding and referencing.
  • Model one-to-one, one-to-many, and many-to-many relationships effectively.

You will need basic Laravel knowledge.

BSON & document structure

What is BSON?

Binary JSON (BSON) is MongoDB’s binary-encoded representation of JSON-like documents. It includes explicit type and length information, enabling fast traversal and efficient storage compared to plain JSON.

In practice, BSON is the format used on disk and over the wire, while you typically read and write JSON-like structures in code.

Basically, BSON is the secret sauce behind MongoDB’s success.

![](https://picperf.io/https://laravelnews.s3.amazonaws.co…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help