CommentType = GraphQL::ObjectType.define do
name "Comment"
field :id, types.Int
field :body, types.String
field :author, UserType
field :post, PostType
end
UserType = GraphQL::ObjectType.define do
name "User"
field :id, types.Int
field :name, types.String
field :joined_at
end