Skip to content

Conversation

@paean99
Copy link

@paean99 paean99 commented Jan 24, 2019

I had time to brood about the previously mentioned idea in the PR #6 and i ended trying a possible solution. Although i think that it would be preferable to be implemented by type-graphql itself.

Like in the others PR i sent, i just had time to put the query working and didn't worried with mutation and its parameters.
And like before i will feign to not have seen the innumerable ts-ignore spread all over the place...

The way it work is similar to the prototype code given in #6
Import the general functions for the resolvers and add them as a parameter to @autoQueries in entity.
See the example in src\entity\Tomato.ts

Seem to works as it is, but mutations need more work. And also, it may break if used with more than one entity :(

Just a proof of concept or something in those lines.

p.s. Sorry. just saw that i should have cleaned the git history
Ok Done the squash

@paean99 paean99 closed this by deleting the head repository Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant