DEV Community

Tiago Braga
Tiago Braga

Posted on

Gatsby GraphQL Query

Hi, Can I use the query graphql with "type"? Example:

export const pageQuery = graphql
{
gcms {
type(name: "Locale") {
enumValues {
name
}
}
}
}
;

But happens this error:
Cannot query field "__type" on type "GraphCMS".

Why?

Oldest comments (0)