Bug description
I made a query to fetch articles based on the ID of the taxonomy.
queryMyQuery {
entries(
collection: "articles"site: "nl_nl"filter: {
article_categories: {
id: { is: "article_categories::slapen" }
}
}
) {
fromtodata {
idurldatetitlestatuspermalink...onEntry_Articles_Article {
idarticle_categories {
idtitleurlsluguri
}
}
}
}
}This is what it returns:
{
"data": {
"entries": {
"from": 1,
"to": 2,
"data": [
{
"id": "25c76288-e56f-4a08-9265-588012db56b3",
"url": "/blog/het-slopende-effect-van-insomnia-hoe-het-uw-dagelijks-leven-beinvloedt",
"date": "2024-06-11 00:00:00",
"title": "Hetslopendeeffectvaninsomnia: hoehetuwdagelijkslevenbeïnvloedt",
"status": "published",
"permalink": "http://localhost:3000/blog/het-slopende-effect-van-insomnia-hoe-het-uw-dagelijks-leven-beinvloedt",
"article_categories": [
{
"id": "article_categories::slapen",
"title": "Slapen",
"url": "/blog/article-categories/slapen",
"slug": "slapen",
"uri": "/blog/article-categories/slapen"
},
{
"id": "article_categories::droomsap",
"title": "Droomsap",
"url": "/blog/article-categories/droomsap",
"slug": "droomsap",
"uri": "/blog/article-categories/droomsap"
},
{
"id": "article_categories::onderzoek",
"title": "Onderzoek",
"url": "/blog/article-categories/onderzoek",
"slug": "onderzoek",
"uri": "/blog/article-categories/onderzoek"
}
]
},
{
"id": "35b520ab-e84e-47d5-99e5-c957a23d20b3",
"url": "/blog/het-slopende-effect-van-insomnia",
"date": "2024-06-11 00:00:00",
"title": "Hetslopendeeffectvaninsomnia",
"status": "published",
"permalink": "http://localhost:3000/blog/het-slopende-effect-van-insomnia",
"article_categories": [
{
"id": "article_categories::droomsap",
"title": "Droomsap",
"url": "/blog/article-categories/droomsap",
"slug": "droomsap",
"uri": "/blog/article-categories/droomsap"
},
{
"id": "article_categories::onderzoek",
"title": "Onderzoek",
"url": "/blog/article-categories/onderzoek",
"slug": "onderzoek",
"uri": "/blog/article-categories/onderzoek"
}
]
}
]
}
}
}You can see that the second article does not contain a taxonomy with an id of article_categories::slapen.
How to reproduce
Create a new statamic project. Create an articles collection and article_categories taxonomy. Connect these two.
Then query the articles with a filter.
Logs
No response
Environment
EnvironmentApplication Name: StatamicLaravel Version: 11.10.0PHP Version: 8.3.6Composer Version: 2.6.5Environment: localDebug Mode: ENABLEDURL: api.dromenwinkel.com.testMaintenance Mode: OFFCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: statamicDatabase: mysqlLogs: stack / singleMail: smtpQueue: syncSession: fileSentryEnabled: MISSING DSNEnvironment: localLaravel SDK Version: 4.6.0PHP SDK Version: 4.8.0Release: NOT SETSample Rate Errors: 100%Sample Rate Performance Monitoring: NOT SETSample Rate Profiling: NOT SETSend Default PII: DISABLEDStatamicAddons: 7Sites: 3 (Nederlands, English, Canada)Stache Watcher: DisabledStatic Caching: DisabledVersion: 5.7.2 PROStatamic Addonsaryehraber/statamic-logbook: 3.3.0orangetalent/statamic-graphql-breadcrumbs: dev-mainorangetalent/statamic-graphql-lang: dev-mainryanmitchell/statamic-translation-manager: 2.0.0studio1902/statamic-peak-seo: 8.14.0studio1902/statamic-peak-tools: 6.1.0webographen/statamic-admin-log: 1.1.0
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
I made a query to fetch articles based on the ID of the taxonomy.
This is what it returns:
{ "data": { "entries": { "from": 1, "to": 2, "data": [ { "id": "25c76288-e56f-4a08-9265-588012db56b3", "url": "/blog/het-slopende-effect-van-insomnia-hoe-het-uw-dagelijks-leven-beinvloedt", "date": "2024-06-11 00:00:00", "title": "Hetslopendeeffectvaninsomnia: hoehetuwdagelijkslevenbeïnvloedt", "status": "published", "permalink": "http://localhost:3000/blog/het-slopende-effect-van-insomnia-hoe-het-uw-dagelijks-leven-beinvloedt", "article_categories": [ { "id": "article_categories::slapen", "title": "Slapen", "url": "/blog/article-categories/slapen", "slug": "slapen", "uri": "/blog/article-categories/slapen" }, { "id": "article_categories::droomsap", "title": "Droomsap", "url": "/blog/article-categories/droomsap", "slug": "droomsap", "uri": "/blog/article-categories/droomsap" }, { "id": "article_categories::onderzoek", "title": "Onderzoek", "url": "/blog/article-categories/onderzoek", "slug": "onderzoek", "uri": "/blog/article-categories/onderzoek" } ] }, { "id": "35b520ab-e84e-47d5-99e5-c957a23d20b3", "url": "/blog/het-slopende-effect-van-insomnia", "date": "2024-06-11 00:00:00", "title": "Hetslopendeeffectvaninsomnia", "status": "published", "permalink": "http://localhost:3000/blog/het-slopende-effect-van-insomnia", "article_categories": [ { "id": "article_categories::droomsap", "title": "Droomsap", "url": "/blog/article-categories/droomsap", "slug": "droomsap", "uri": "/blog/article-categories/droomsap" }, { "id": "article_categories::onderzoek", "title": "Onderzoek", "url": "/blog/article-categories/onderzoek", "slug": "onderzoek", "uri": "/blog/article-categories/onderzoek" } ] } ] } } }You can see that the second article does not contain a taxonomy with an id of
article_categories::slapen.How to reproduce
Create a new statamic project. Create an
articlescollection andarticle_categoriestaxonomy. Connect these two.Then query the articles with a filter.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response