Has anyone done a query for Articles that have metafields? I can query the articles with its title, otherfields etc, but by default Shopify won't return the articles metafields in this call. These metafields for these articles have been created by an app. My first goal would be trying to call all articles and view its metafields also.
Currently...
# My Graphql
{
articles(first:2){
edges{
node{
title
excerpt
}
}
}
}
# Json Response
{
"data": {
"articles": {
"edges": [
{
"node": {
"title": "First Post",
"excerpt": ""
}
},
{
"node": {
"title": "Second Post",
"excerpt": ""
}
}
]
}
}
}
What I hope for ...
My Graphql:
{
articles(first:2){
edges{
node{
title
excerpt
metafields
}
}
}
}
# Response
{
"data": {
"articles": {
"edges": [
{
"node": {
"title": "First Post",
"excerpt": "",
"metafields":[{
"namespace":"mynamespacehere",
"key":"mykey",
"value":"Some Value"
}
]
}
}
##...all other posts
]
}
}
}