I’m running into a strange GraphQL issue with a Builder.io “Page” model.
In my model, under Options → Fields, I have the following custom fields:
Title
Page URL (text field)
According to the Builder docs, the field label “Page URL” should map to an API key like url, or similar, inside the data { … } block returned by GraphQL.
However, when I query my pages using the following GraphQL:
query {
page {
id
data {
url
}
query {
property
operator
value
}
}
}
{
“id”: “22222222222222222222222222222222”,
“data”: null,
“query”: [
{
"property": "urlPath",
"operator": "startsWith",
"value": "/example/url"
}
]
}
Why am I getting the null in the data. Did recent changes or some update change the way of getting the data where I would normally get the URL and metadata from ?
