What is the actual query youâre trying to make? (As in what is the actual GraphQL query you have right now thatâs not working, and what is your intent with that query?)
You can post it here on the forum by formatting with triple backticks followed by âgqlâ, like this:
```graphl
query MyQuery {
blahBlahModel: {
id
}
}
```
will be rendered as:
query MyQuery {
blahBlahModel: {
id
}
}
(Sorry, your project playground is only saved on your computer and I canât see what you put in there!)
A query like this seems to work OK for me, but not sure if this is what youâre trying to do:
query MyQuery {
allAPages {
title
slug
sections
rte { # rte is the structured text field
blocks # will be empty because this field has no separate blocks
inlineBlocks { # no inline blocks either
id
}
value # the actual structured text, where the inline items and links live
links { # use this to look up the record links from the value field by ID
id
title
slug
sections
}
}
}
}
If thatâs not what you were trying to do, could you please provide the query you attempted to use?
Even if the model was updated to have many types of inlineBlocks its working
{
aPage(filter: {slug: {eq: "page-with-inline-link"}}) {
title
rte {
inlineBlocks {
# as an example, model isn't set up this way
... on RecordInterface {
id
__typename
}
... on CtaRecord {
label
page {
slug
}
}
}
}
}
I will keep looking to see what is wrong on my end. Cheers
Sandbox error: inline block only had a single record in the validation but I was using the below which it doesnât seem to like, completely fine adjusted the query.
inlineBlocks {
... on RecordInterface {
id
__typename
}
Code GQL error: I was not pointing to the correct Dato environment which had the model with inline blocks (main had no inlineBlocks, so empty array).
Closing, thanks for your time as always support team