odata-v4-typeorm icon indicating copy to clipboard operation
odata-v4-typeorm copied to clipboard

Method calls aren't respecting proper parameter placement

Open blitzmann opened this issue 3 years ago • 2 comments

{{base_url}}/api/posts?$filter=id gt 1 and id lt 5 and contains(title, 'Feugiat')

where clause is evaluated to Post.id > :p0 AND Post.id < :p1 AND Post.title like :p0. Note the title parameter being :p0 when it should be :p2. it looks like this is due to the method calls using ? as the parameter placeholders, which is then attempted to be converted in the asType() function. I don't think this is necessary, as this library is supported to use TypeORM, and thus is supposed to be server unaware (indeed, the library is forced to be "oracle" is it's type)

blitzmann avatar Jul 06 '21 15:07 blitzmann

Just started looking at this project. I noticed the hardcoded Oracle type and was confused as well. @blitzmann / @andryuha49 is this repo still active?

brandonmpetty avatar Nov 28 '21 05:11 brandonmpetty

@brandonmpetty unsure about this repo, but I've forked it for my own needs for the projects at my job. https://github.com/blitzmann/odata-v4-typeorm It has a variety of fixes and improvements, but it's definitely not comprehensive and YMMV. I ran into an issue with typeorm itself a while back and stopped working on it (that and the project I was using it for took a bit of a backseat as well)

blitzmann avatar Jan 14 '22 05:01 blitzmann