5.2.0 • Published 6 months ago
@sonarsource/marketing-gatsby-transformer-kontent-graphql v5.2.0
Gatsby Transformer Kontent GraphQL
This plugin overrides the default GraphQL types generated by the gatsby-source-kontent plugin.
Configuration
projectId: the Kentico project id used by thegatsby-source-kontentpluginmanagementKey: The Management API key of the Kentico projecttypesToGenerate: optional array listing the types that needs to be generated. if the array is empty, nothing will be handled by this plugin. If omitted, it will override all types
Changes brought to the default gatsby-source-kontent GraphQL types
Text element
- If the element is marked as required in Kentico Kontent, the GraphQL type will also be marked as required
URL Slug element
- If the element is marked as required in Kentico Kontent, the GraphQL type will also be marked as required
Asset element
- If the element is marked as required in Kentico Kontent, the GraphQL type will also be marked as required
- If the
Limit number of assetsconstraint is configured in Kentico Kontent:- The element will return a single value if the limit is either
at most 1orexactly 1 - For whatever other value, the element will return an array
- The element will return a single value if the limit is either
Multiple choice element
- If the element is marked as required in Kentico Kontent, the GraphQL type will also be marked as required
- If the
Show in content item asconstraint is configured as "Radio buttons" in Kentico Kontent, The element will return a single value. Otherwhise it will be returned as an array. - Every choice configured in Kentico Kontent will be transformed into a
enumtype in GraphQL, as to provide correct type-hinting in Typescript
Linked Item and Subpages element
- If the element is marked as required in Kentico Kontent, the GraphQL type will also be marked as required
- If the
Limit number of assetsconstraint is configured in Kentico Kontent:- The element will return a single value if the limit is either
at most 1orexactly 1 - For whatever other value, the element will return an array
- The element will return a single value if the limit is either
- Every
Allowed content typeconfigured in Kentico Kontent will be transformed into auniontype in GraphQL, as to provide correct type-hinting in Typescript
5.2.0
6 months ago
5.1.1
7 months ago
5.1.0
7 months ago
5.0.0
7 months ago
4.0.0
7 months ago
3.7.2
1 year ago
3.8.0
1 year ago
3.7.1
1 year ago
3.6.2
1 year ago
3.7.0
1 year ago
3.6.1
1 year ago
3.6.0
2 years ago
3.4.0
2 years ago
3.4.3
2 years ago
3.5.1
2 years ago
3.4.2
2 years ago
3.5.0
2 years ago
3.4.1
2 years ago
3.3.0
2 years ago
3.2.2
2 years ago
3.2.1
3 years ago
3.2.0
3 years ago
3.1.1
3 years ago
3.1.0
3 years ago
3.0.6
3 years ago
3.0.4
3 years ago
3.0.5
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
2.0.9
3 years ago
2.0.8
3 years ago
2.0.7
3 years ago
2.0.6
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago