Nested Array to Query Params

Hi, I have:

[
    {
        id: // the field to be search
            {
                eq: '1234'  // eq is the operand; 1234 is the keyword
            }
    },
    {
        description:
            {
                like: 'desc'
            }
    }
]

How to transform it to query parameters to:

?filter[id][eq]=1234&filter[description][like]=desc

since the API needed the format like so for the filters?

You could try overriding urlForQuery in your adapter (docs here). Of course that is assuming you are using Ember Data, if not you should be able to build the URL manually.