Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

__typename does not match generated type #280

Open
kilinkis opened this issue Feb 2, 2021 · 0 comments
Open

__typename does not match generated type #280

kilinkis opened this issue Feb 2, 2021 · 0 comments

Comments

@kilinkis
Copy link

kilinkis commented Feb 2, 2021

On [email protected] and latest gatsby-source-prismic-graphql

my query:

export const heroSliceFragment = graphql`
    fragment HeroSlice on PRISMIC_Slice_pageBodyHero {
        primary {
            title
            predefined {
                __typename
                ...Form_title
            }
        }
    }
`

when I log slice.primary.predefined.__typename, I get Form_title, but on the generated graph types, it shows as PRISMIC_Form_title. So it leads to a typescript error.

Any ideas on what could be wrong?
Thanks in advance

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

No branches or pull requests

1 participant