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

BUG- translating "!= null" in list options builder #39

Open
tmenier opened this issue Nov 21, 2018 · 2 comments
Open

BUG- translating "!= null" in list options builder #39

tmenier opened this issue Nov 21, 2018 · 2 comments

Comments

@tmenier
Copy link
Contributor

tmenier commented Nov 21, 2018

Given a list call like this:

client.Product.ListAsync(opts => opts.AddFilter(p => p.ShipFromAddressID != null);

The resulting API call looks like this:

/products?ShipFromAddressID=!

"Not null" should translate to *, so we actually want this:

/products?ShipFromAddressID=*
@crhistianramirez
Copy link
Contributor

@tmenier On the flip-side of this, should something like

client.Product.ListAsync(opts => opts.AddFilter(p => p.ShipFromAddressID == null);

Translate to

/products?ShipFromAddressID=!*

?

@tmenier
Copy link
Contributor Author

tmenier commented Jul 29, 2024

Agree. I guess to say this slipped off my radar would be an understatement.

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

No branches or pull requests

2 participants