I haven't played with the Golang server yet, but with Node you just set the resolve to something like:
resolve (root, args) { return Db.models.post.findAll({ where: args }); }
(sorry for the lack of markup, I don't know how to do anything here yet)
Here's a blog post specifically for Golang: http://alexandrutopliceanu.ro/post/graphql-with-go-and-postg...