Skip to content

Aggregate calls forcing [] bracket wrapping on the response. This unfortunately interferes with some 3rd party charting libraries.  #1633

Description

@robertgardunia

My aggregate call is returning an array:

[
{
"data" : [
{
"name": "Statements",
"data": [
4
]
}
],
"category": [
"Abandoned"
]
}
]

Instead of an object:
{
"data" : [
{
"name": "Statements",
"data": [
4
]
}
],
"category": [
"Abandoned"
]
}

I can test with the absolutely simplest aggregate call and I still get the brackets. This seems to be 'built in' to the aggregate API in Learning Locker. Is there way to flag this so that it returns an object when we know it's a single item and not an array? We are doing a call from a 3rd party charting plug-in so there's no easy way to manipulate the response before it gets consumed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions