I'm having the same issue, how am I supposed to know what fields I can and can't query in the API browser with autocomplete being broken? This forces me to guess what fields I can query.
I'm new to Prismic and all I want to do is query based on a field called game_name, but without autocomplete I can't figure out how to do that.
If I query [at(document.type, "_generic_game_template")]
then I get JSON results like this:
"results": [
-{
"id": "REDACTED",
"uid": null,
"url": null,
"type": "_generic_game_template",
"href": "REDACTED",
"tags": [ ],
"first_publication_date": "2022-02-14T15:00:54+0000",
"last_publication_date": "2022-03-29T13:51:50+0000",
-"slugs": [
"capital-gains"
],
"linked_documents": [ ],
"lang": "en-us",
"alternate_languages": [ ],
-"data": {
"game_name": "Capital Gains",
"game_launch_id": "5134",
"game_type_id": "4644",
"game_type_id_mobile": "4644",
"provider": null,
"device_restriction": "desktop mobile",
"os_restriction": "ios android",
+"games_filter": [ … ],
+"game_thumbnail": { … },
+"latest_played_thumbnail": { … },
+"vertical_thumbnail": { … },
+"app_thumb": { … },
"holiday_icon": { },
"xppoints": null,
"gameinfotext": [ ],
"qa_desktop_allowed": true,
"qa_mobile_browser_allowed": true,
"qa_android_app_allowed": true,
"qa_ios_app_allowed": true,
"live_desktop_allowed": true,
"live_mobile_browser_allowed": true,
"live_android_app_allowed": true,
"live_ios_app_allowed": true
}
},
Since there is a data object with game_name inside of it I would expect this to work:
at(document.data.game_name, "Capital Gains")
But I get this error in the photo attached:
And without autocomplete I see no way of knowing how to do the query properly. Has there been any movement on fixing this?
Did someone forget to "import "codemirror/addon/hint/show-hint.js"; somewhere?