14 Commits

Author SHA1 Message Date
f39e1b9c64
rename getColl -> Collection 2025-04-18 18:34:29 -04:00
6e865b733d
implement more bug fixes and improvements for populating deeply nested refs 2025-04-11 23:05:14 -04:00
378b5d756a
fix nested refs not being recognized as "populated" during serialization 2025-04-10 16:47:57 -04:00
0ebe3a2a3a
rework how references are found in Document.Populate 2025-04-10 16:09:40 -04:00
c85efdc49f
improve json marshaling/unmarshaling 2025-04-08 16:13:07 -04:00
40b754668d
rework Populate api 2025-04-07 02:08:56 -04:00
5585634c83
nvm figured it out lol? 2025-04-06 22:18:27 -04:00
4de1c20938
THIS DOESN'T WORK.
but i need to commit
2025-04-06 17:41:00 -04:00
1f9d32193f
add Count function to Model
begin work on tracking populated/unpopulated fields
2025-04-05 23:44:36 -04:00
11d31fbbc1
improve Save api
add a `SaveWith` function that accepts `SaveOptions` as a parameter, letting you tweak things like whether timestamps will be set before an insert or update operation
2025-03-27 00:12:19 -04:00
bb37212be7
fix doSave calls to check if the document's ID is a zero value 2025-03-26 23:38:19 -04:00
7fc4ed46c8
ensure that the internal model field in the Document struct is tagged with bson:"-" 2025-03-25 16:24:05 -04:00
8b9720b70a
correct Pull method to break out of inner loop if a match is found
let's maybe not stop pulling elements after only the first one has been processed?
2024-09-14 15:10:14 -04:00
fcd7cb2013
overhaul models to be more sensible by separating "instance" logic into a separate Document type 🪷 2024-09-14 02:09:38 -04:00