Graphqlbundle: Upgrading from 0.12 to 0.13.3 changes behaviour of property access on booleans

Created on 13 Aug 2020  Â·  2Comments  Â·  Source: overblog/GraphQLBundle

| Q | A
| ---------------- | -----
| Bug report? | yes
| Feature request? |no
| BC Break report? | yes
| RFC? |no
| Version/Branch | v0.13.3

When we upgraded our large GraphQL API we noticed that some boolean fields returned null instead of booleans. Upon investigating we found out that some booleans need a resolve attribute like this:

 valid:
   type: 'Boolean!'
+  resolve: '@=value.isValid()'

I think this is related to the removal of the Symfony PropertyAccess component. That component would not only search for get{$fieldName} but also for is{$fieldName}.

Can this be added back?

Most helpful comment

This will be fix by #720.

All 2 comments

This will be fix by #720.

@mcg-web Awesome, I'll close this one and wait for the next release. Thanks for the fast reply âš¡

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rpander93 picture rpander93  Â·  3Comments

Alsciende picture Alsciende  Â·  5Comments

AliceMakk picture AliceMakk  Â·  4Comments

ooflorent picture ooflorent  Â·  6Comments

ruudk picture ruudk  Â·  5Comments