commercetools-docs-kit icon indicating copy to clipboard operation
commercetools-docs-kit copied to clipboard

Refactor the data structure in the graphql schema to support all content types

Open timonrey opened this issue 3 years ago • 0 comments

At the moment, the data structure in the GraphQL surface defines specifically which content types are allowed and supported. Every time we want to introduce a new content type, we need to adjust the data structure just to be able to render the raml spec.

Ideally, the data structure should not need to know the content type and should support all of them. This would also simplify the request components. Place of the defined GraphQL schema: https://github.com/commercetools/commercetools-docs-kit/blob/main/packages/gatsby-transformer-raml/src/schema/define-raml-resource.js#L116

Follow up from: #1462

timonrey avatar Jan 09 '23 15:01 timonrey