Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not duplicate things with resolver and schema #15

Open
Dracks opened this issue Feb 26, 2020 · 0 comments
Open

Not duplicate things with resolver and schema #15

Dracks opened this issue Feb 26, 2020 · 0 comments

Comments

@Dracks
Copy link

Dracks commented Feb 26, 2020

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.

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

No branches or pull requests

1 participant