@freekmurze PHPStan inferred the type of the collection you are calling `map()` upon to have keys of `int|string` and values of `mixed`. The passed in closure expects more specific types, which violates contravariance. You need to prove the types within or loosen the closure parameter types.
@driesvints@enunomaduro @im_brian_d The plugin looks interesting, parts of it might make Lighthouse testing more ergonomic. https://t.co/UDOkBoJHTI
Integrating Laravel and GraphQL works nicely, concepts such as Policies can be shared. Conflating HTTP specifics did not work well, Lighthouse separates them clearly.
@acro5piano@MikroOrm@shunkakinoki Yup, Lighthouse uses union queries and then separates the results. There is some trickery with polymorphic types, but overall it is not too complicated.
@mattstauffer Just saw your talk at Laracon, great stuff.
You inspired me to reach out and spread the word about Lighthouse, a GraphQL integration for Laravel. Would you be interested in collaborating on your podcast or some other way?
https://t.co/Y2N4wdhCFb