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

Filtering by a property value of a composed object returns error #435

Closed
fra967 opened this Issue Jun 12, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@fra967
Copy link
Member

fra967 commented Jun 12, 2018

Expected behavior

Consider a collection book with a field named Status, whose value can be "published" or "draft", and reference this collection from event.

Filtering all events for books whose status is published should return the relevant books
/v1/library/event?filter={"book.publishStatus.status":"published"}

Actual behavior

Error 400 Bad Request

Steps to reproduce the problem

bae0ddd

Package details

API 3.1.2 (also applicable API 2.x)
node 6.14.2

@eduardoboucas

This comment has been minimized.

Copy link
Member

eduardoboucas commented Jun 12, 2018

I'll investigate.

@eduardoboucas

This comment has been minimized.

Copy link
Member

eduardoboucas commented Jun 13, 2018

Sorry @fra967, I don't know why this test was removed as part of the Reference field refactoring done in 3.1.0.

The issue has been fixed, the test has been added back and it was released as API 3.2.1.

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