-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
-
Empty show more show less
-
HL & LD 20
-
5
Steps to reproduce
1. Install a webapp with GraphQL feature enabled. Start the webapp.
2. Add the following light module to the author instance:
git clone -b withAuthorCatalog --single-branch https://git.magnolia-cms.com/scm/documentation/bookshelf.git
The bookshelf references the authors using the following property:
model: nodeType: lib:book properties: - name: authors type: reference:authors
3. Open the Definitions app. While the contentTypes node will contain authors and bookshelf types, in the graphqlTypes the bookshelf type will be missing initially.Â
Expected results
Upon registering a content type, a graphql type should be created even for the source model.
Workaround
Either restart the instance or save-edit a modification in the light module.
I did not test this, but it should work to put the CT files in different light modules and have the light module with the depending CT depend on the other module - this should force the CT and the GraphQL to be created properly.
Development notes
Implications
Marking as critical as this means that feature is likely to (unpredicatably) fail when CT's with relationships are used.
- is caused by
-
MGNLGQL-56 DOC: Support for asset renditions in GraphQL
- Closed
- supersedes
-
MGNLGQL-36 Moving whole light module directory won't fire event to update GraphQL definitions in registry
- Closed