   (attr :email :user/email)
   (has-many :topics
             :serializer gratefulplace.db.serializers/topic
-            :retriever #(db/all :topic/title [:content/author (:db/id %)]))
+            :retriever #(gratefulplace.db.query/all :topic/title [:content/author (:db/id %)]))
   (has-many :posts
             :serializer gratefulplace.db.serializers/post
-            :retriever #(db/all :post/content [:content/author (:db/id %)])))+            :retriever #(gratefulplace.db.query/all :post/content [:content/author (:db/id %)])))
(ns gratefulplace.db.serializers
  (:use [gratefulplace.db.serialize]))

(defserializer topic

           :retriever :content/author)
  (has-many :posts
            :serializer gratefulplace.db.serializers/post
            :retriever #(gratefulplace.db.query/all :post/topic [:post/topic (:db/id %)])))

(defserializer post
  (attr :id :db/id)
