Diana.jl icon indicating copy to clipboard operation
Diana.jl copied to clipboard

Not duplicate things with resolver and schema

Open Dracks opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. I don't like to repeat work, and create a variable of schemas and a variable of resolves, can always be a focus of problems.

Describe the solution you'd like Someway, maybe using macros, create a uniq schema with the resolvers, to generate the schema definition, and be sure that the same field has the correct resolver

Describe alternatives you've considered Something like type-graphql, will be a good idea:

@query(type="String)
function hello
 return "World
end

schema = Dict("hello"=>hello)
graphql.schema(schema)

Additional context Add any other context or screenshots about the feature request here.

Dracks avatar Feb 26 '20 06:02 Dracks