Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with any request inside filter #767

Open
flibidi67 opened this issue Dec 20, 2023 · 0 comments
Open

Problem with any request inside filter #767

flibidi67 opened this issue Dec 20, 2023 · 0 comments

Comments

@flibidi67
Copy link

Hi,

I'm using lodata with the Lumen framework. I write a ServiceProvider to make it work. I'm currently facing an issue with the any filter inside a filter request : "$filter=keywords/any(s:contains("keyword"))" the error message is this : "Encountered an invalid symbol at: keywords>/<".

I'm using lodata with a MongoDB database and I declared most of the properties manually :

        $entityType = new MongoEntityType('model');
        $entityType->addDeclaredProperty('keywords', Type::collection(Type::string()))
        $entitySet = new MongoEntitySet('Models', $entityType);

        $entitySet->setCollection($this->client->database->models);
        Lodata::add($entitySet);

When I try the same filter request on the odata tutorial page it works : https://services.odata.org/V4/(S(f20bmvx1k4rnprkaym3bgasq))/TripPinServiceRW/People?$filter=Emails/any(s:contains(s,%20%27Scott%27))

Did I make something wrong ?
Thanks,
flibidi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant