top
up

1QuickstartπŸ”— i

Here’s a little snippet that uses the API.

(define d(make-mongo-db m"awesome-dot-com"))
(define-mongo-struct post"posts"
([title#:required]
[body#:required]
[tags#:set-add#:pull]
[comments#:push#:pull]
[views#:inc]))
(define p
(make-post#:title"Welcome to my blog"
#:body"This is my first entry, yay!"))
(set-add-post-tags!p'awesome)
(inc-post-views!p)
(set-post-comments!p(list "Can't wait!""Another blog?"))
(post-commentsp)
top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /