Modify GraphQL response doesn't work

System Information
  • Strapi Version: 3.5.3
  • Operating System: Ubuntu
  • Database: PostgreSQL
  • Node Version:
  • NPM Version:
  • Yarn Version:

Update from 3.3.2 to 3.5.3

What am I trying to do?
I created a custom resolver (…/config/schema.graphql.js) that returns an entity with a dynamically modified attribute.

Example
Original Entity:
{"id":1, "title": "test", "subtitle":null}

Return modified entity over my custom resolver:
{"id":1, "title": "test", "subtitle":"this is dynamic"}

Response from graphql post:
{"id":1, "title": "test", "subtitle":null}

It no longer works since the last update. The value of the attribute (subtitle) is null by default.

Any help?

Did you ever get any response on your question? I am doing the exact same thing and my dynamically attribute is not working. I fetch an entity from the Strapi CMS and then convert it to a string, so I can do “find and replace the dynamically attribute”. Once the conversion is done, I convert it back to an object then return toEntityResponseCollection(graphqlObject);