Open frederikhors opened 3 years ago
e.g. if you have a function name UserToGraphql in your package and it's not in the default files we will generate UserToGraphqlOriginal which you can still use but your custom function is getting called.
Issue id: https://github.com/web-ridge/gqlgen-sqlboiler/issues/7
Issue id: https://github.com/web-ridge/gqlgen-sqlboiler/issues/18
I'm still working on releasing version 3 with Connections it's finished in development but still needs some documentation
For now if I want to customize I add a different file e.g. resolver_custom.go with my custom logic and remove the generated resolver after generation.
Tenants are configurable now in v3.1.1!
Your work is amazing!
It feels like every line of code is sweaty. :smile:
A huge thank you for all this.
In a few hours I want to start a project with this.
Issues
convert_plugin.go
I have to write an additional argument forgbgen.NewConvertPlugin
. What should I write there?Proposals
I undertake to write documentation for every single thing I learn, day after day: explanations that maybe those who created it take for granted, recipes for routine things etc.
But we have to decide where to write them: one thing that doesn't steal more than 10 minutes of setup. A Gitbook on github pages?
Fears
How to write business logic after all the generation?
Example:
If I'm creating a Player for a Team I wanna check if Team has enough "space" before (in a simple DB transaction).
Is this eventuality considered? I think so, of course. I just don't know where to start. :cry:
Have you ever needed to use something for tenants in the DB?
Something like https://github.com/influitive/apartment for Rails.
Quite simply adding
WHERE tenant_id = [ID]
to each DB query and the same for insert/update/delete queries.Thanks again for this huge huge huge work! :smile: