Skip to content

joData does not support query urls that have parameters #2

@asmarkis

Description

@asmarkis

I did a lot of research on what developers prefer and are saying about the oData standard. It seems like some feel that oData encourages leaky abstraction, which is not the best design principle.

I was looking through joData to see if there was any functionality that could add parameters to the query outside of oData. Either I couldn't find a proper way to do this, or it seems like it is unsupported.

For example, if I want to filter a query on:
/odata/EntityTables

Like so:
/odata/EntityTables?$filter=id eq 10

But have a parameter:
/odata/EntityTables?type=1&$filter=id eq 10

With joData, it will result in the incorrect uri:
/odata/EntityTables?type=1?$filter=id eq 10

So, the current workaround that I am using for this problem is adding the normal parameters on after the jodata filtering, which works, but is not ideal:
jodatauri = /odata/EntityTables?$filterTables?$filter=id eq 10
get(jodatauri.toString() + "&type=1");

Am I missing something, or is there missing functionality?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions