Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing type: __component #73

Open
ciriousjoker opened this issue Mar 6, 2023 · 1 comment
Open

Missing type: __component #73

ciriousjoker opened this issue Mar 6, 2023 · 1 comment

Comments

@ciriousjoker
Copy link

ciriousjoker commented Mar 6, 2023

Actual response:

{
  "id": 1,
  "__component": "some_category.some_name",
  "title": "...",
  ...

This is important, because in the dynamic zone, we want build different sections from the given data based on this key.

Basically, we get this type:

export type PageContentDynamicZone = ComponentA | ComponentB | ComponentC | Error;

export type ComponentA = {
  __typename?: '...';
  __component: 'some_category.some_name'; // <-- this is missing
  id: Scalars['ID'];
  title?: Maybe<Scalars['String']>;
  ...
};
@ciriousjoker
Copy link
Author

@Stun3R Are you open to PRs regarding this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant