Skip to content

Running into issue with Guid and Remove quotes #142

@AaronWeber53

Description

@AaronWeber53

When I am making a call and adding a filter to the query for a guid lookup. It is not removing the quotes when parsing out the request.

 this.sideNavService.selectedSeasonID.subscribe(x => {
   this.seasonID = x;
   if (x) {
     this.queryFilter = { "field": "SeasonID", operator: 'eq', value: x as Guid, removeQuotes: true };
   }
   else {
     this.queryFilter = undefined;
   }

   this.refreshData();
 })

When making the call it comes out as this with the added string encoding quotes on the guid (the %27)

https://localhost:4200/api/League/GetByFilter?$filter=SeasonID%20eq%20%27114a2d5d-d41b-46e5-3cc9-08dddf287571%27&$top=5&$skip=1

Any help on how I could go about fixing this would be great. thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions