openneuro icon indicating copy to clipboard operation
openneuro copied to clipboard

Aggregate snapshots in datasets resolver returns null for description

Open nellh opened this issue 4 years ago • 0 comments

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.

nellh avatar Jun 02 '21 18:06 nellh