GraphQLBundle icon indicating copy to clipboard operation
GraphQLBundle copied to clipboard

Always pass arguments from expression function

Open kix opened this issue 6 years ago • 2 comments

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
Fixed tickets none
License MIT

Previously, if I was passing arguments to my resolvers with the expression function, I would get null instead of an instance if the query has no arguments (e.g. no parens at all in GQL).

However, this breaks resolvers that require an instance argument. This makes @arguments always try to return an instance of an InputObject whenever it is required.

kix avatar Jan 21 '20 20:01 kix

ArgumentsTransformer is @Vincz's stuff. Ping 📡

murtukov avatar Jul 09 '20 18:07 murtukov