openneuro
openneuro copied to clipboard
Aggregate snapshots in datasets resolver returns null for description
Describe the bug This query doesn't work, it returns description: null for every result.
To Reproduce
query datasets {
datasets(first: 100) {
edges {
node {
id
public
snapshots {
description {
Name
Funding
}
}
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
Bad result looks like this:
{
"node": {
"id": "ds000001",
"public": true,
"snapshots": [
{
"description": null
},
{
"description": null
},
{
"description": null
},
{
"description": null
},
{
"description": null
}
]
}
},
Expected behavior You should be able to successfully query all snapshots of any matching datasets like this.