[MGNLGQL-174] Introduce graphQL types for standard apps Created: 30/Oct/23  Updated: 20/Dec/23

Status: Open
Project: Magnolia GraphQL
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Tobias Kerschbaum Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File definitions-dx-core-cts.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

It should not be a problem to add references to standard apps like the categories app, which is automatically installed. Right now, if I add a reference to my content type, I get an error.

 

Content type:

datasource:
  workspace: <some workspace>
  autoCreate: true
model:
  nodeType: <some nodeType>
   properties:
    - [...]
    - name: category
      label: Category
      type: reference:category 

 

Error:

ERROR info.magnolia.event.SimpleEventBus 30.10.2023 07:57:57 -- Exception caught when dispatching info.magnolia.graphql.core.GraphQLDefinitionChangedEvent with info.magnolia.graphql.core.GraphQLProvider$$Lambda$1494/0x0000000841429040 eventHandler.
graphql.AssertException: type Category not found in schema 

 



 Comments   
Comment by Christopher Zimmermann [ 20/Dec/23 ]

I am surprised it does not work. There are default contenttypes for stock apps. See image: 

Generated at Mon Feb 12 05:53:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.