Skip to content

Problem with any request inside filter #767

@flibidi67

Description

@flibidi67

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions