How would I do simple data transformations in a query?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Hey guys, I don't think the OData spec covers this and thus i'm fairly confident that the framework won't do this but we have an interesting solution where clients often tell us "specifically" how they want a "file".
I'm trying to find a way to tell the framework something like this SQL query ...
SELECT Foo AS Bar FROM SetName
the idea I have is to extend the framework to support an "$as" query param like this ...
~/SetName?$select=Foo&$as=Bar
Ideally though it would be better to extend $select support so I could write something like this ...
~/SetName?$select=Foo as Bar
How would I go about either of these options?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the issue's $select and proposed $as query examples as the starting point, and first verify whether the OData specification supports aliases or transformations. Done means establishing one supported query form and documenting or implementing its expected result shape; the issue does not name files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100