I'm encountering a bug related to a decorated object and I'm unsure if this is a known limitation or a mistake on my part. I'm using the bundle in a Symfony app.
My objective is to create a given structure for my response, so I decided to decorate my entity Order (object) with a NodePermission (object), which declare a field authorization (object) that contains computed data via resolver. However, I'm facing an issue where the authorization field, returns null instead of instantiating it with resolved fields.
NodePermission:
type: 'object'
decorator: true
config:
interfaces: ["NodePermissionInterface"]
fields:
authorization:
type: 'Authorization' # returns null in response
description: 'The authorization for a user to perform an action on an object or on a set of object properties.'
I'm encountering a bug related to a decorated object and I'm unsure if this is a known limitation or a mistake on my part. I'm using the bundle in a Symfony app.
My objective is to create a given structure for my response, so I decided to decorate my entity
Order
(object) with aNodePermission
(object), which declare a field authorization (object) that contains computed data via resolver. However, I'm facing an issue where the authorization field, returns null instead of instantiating it with resolved fields.Here's the relevant code for reference:
Configuration
config/graphql/order/types/Order.types.yaml
config/graphql/common/decorator/NodePermission.yaml
config/graphql/common/interface/NodePermissionInterface.yaml
config/graphql/common/types/Authorization.types.yaml
Response
actual
expected
I believe this is a common usage scenario, so I would be surprised if it's not a supported feature.