Contentful logo

Contentful Community

Error with longText type

Hi there,

just a quick question about query a longText data. I do not need a rich text or a markdown for my field. So I set up the appearance as a multiple line. I use gatsby and graphql for my project, so in GraphiQL I get the data as

desc {
id
desc }

Works fine. But in my project I get an error ‘desc’ is not defined. I suppose that the type of longText is not a String, even though I made it as a multiple line. Could you please help me?