Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Allow relationships to be compared to scalars#182

Open
multimeric wants to merge 2 commits into
miLibris:masterfrom
multimeric:relationship-filter
Open

Allow relationships to be compared to scalars#182
multimeric wants to merge 2 commits into
miLibris:masterfrom
multimeric:relationship-filter

Conversation

@multimeric

@multimeric multimeric commented Nov 21, 2019

Copy link
Copy Markdown
Contributor

This is based on the recommendations part of the spec, which lets you do things like: GET /comments?filter[post]=1, even though filter[post] isn't actually an integer.

In addition, I've allowed queries like filter[id]=1,2,3, which internally is converted into a has operator.

I added tests for these changes.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 90.801% when pulling e3e1fed on TMiguelT:relationship-filter into b44bc08 on miLibris:master.

@coveralls

coveralls commented Nov 21, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.07%) to 90.845% when pulling 8ec2aad on TMiguelT:relationship-filter into b44bc08 on miLibris:master.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants