Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

use macro to reduce boilerplate code #43

Open
mydearxym opened this issue Jul 13, 2018 · 0 comments
Open

use macro to reduce boilerplate code #43

mydearxym opened this issue Jul 13, 2018 · 0 comments
Assignees

Comments

@mydearxym
Copy link
Member

mydearxym commented Jul 13, 2018

some code like

field :paged_posts, :paged_posts do
    arg(:filter, non_null(:paged_article_filter))
    
    middleware(M.PageSizeProof)
    resolve(&Resolvers.CMS.paged_posts/3)
    middleware(M.FormatPagination)
end

some file like
page_post_test

has lots of boilerplate code with job, video, repo ... should use macro to reduce it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant