but then I get this error when I use the fragment in my query:
Ouch! The query has some errors! [
{
message: "No such type ArticleRecord, so it can't be a fragment condition",
locations: [ [Object] ],
path: [ 'fragment articleCard' ],
extensions: { code: 'undefinedType', typeName: 'ArticleRecord' }
}
]
the same fragment and same query in the explorer work without any problems.
tx
Are you using GatsbyJS by any chance? If not, can you send us the project ID that you are doing those requests on so we can take a look at what could be happening?
I couldn’t find the model “Article” in the project ID you sent, perhaps you are looking into a different project? Can you send me the URL you are using as the project explorer playground? (You can send at support@datocms.com if you don’t want to share the URL publically)