Skip to content

[TASK] Update GraphQL to Expose Style Properties #33696

@fabrizzio-dotCMS

Description

@fabrizzio-dotCMS

Description

3.1 Update PageAPIGraphQLTypesProvider to include the new property

Add the styles property to the GraphQL schema
Connect it with the respective contentlet datasource
Implement or update the TypeFetcher accordingly
See SPIKE for implementation details and approach

3.2 Write tests

Unit tests for GraphQL type definitions
Integration tests for GraphQL queries returning style properties
Postman/Karate Tests
Test data fetching and mapping from contentlet to GraphQL response
Verify proper handling of null/empty style properties

3.3 Hide this functionality under the feature flag

Ensure the styles property is only exposed when ENABLE_PAGE_CONTENT_STYLING feature flag is enabled
Verify backward compatibility when flag is disabled
Test GraphQL schema behavior with flag on/off

Acceptance Criteria

  • GraphQL schema includes the new styles property
  • PageAPIGraphQLTypesProvider correctly maps style properties from contentlets
  • All tests pass (unit and integration)
  • Functionality is only active when ENABLE_PAGE_CONTENT_STYLING feature flag is enabled
  • GraphQL queries return style properties correctly when feature is enabled
  • No breaking changes to existing GraphQL queries when feature flag is disabled

Priority

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions