Replies: 1 comment 4 replies
-
I added docs for this, see https://github.com/webonyx/graphql-php/pull/1101/files#diff-301a2998dd7e5ac817d73935d870810d96b51411a60a5be855aed24289ba5557R153-R185 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to achieve that GraphQL query in mapped to Laravel Eloquent builder. In my mind, a query like
should be mapped to
Is there a way to implement my own logic how resolvers are handled?
I'm looking for an option to pass query builder instance around in resolvers and manipulating the builder to then execute the built query.
From the docs
I've managed to pass query builder to nested resolvers and actually build the query however there are problems with scalars and enums. In the end, the whole system seems to be built differently.
Not looking for other Laravel implementations like Lighthouse. My concern is that the default mechanism for resolving is forcing to fetch more data from the database than requested from the client. Even in Lighthouse specifying only one field will do
select * from
which bloats the runtime memory and makes database queries longer.Beta Was this translation helpful? Give feedback.
All reactions