You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replace filter, filter_param_1, filter_param_2 and filter_param_3 in Crud::all() and Crud::count() with a single filters param, as above
move existing field-specific filter logic from crud.rs modules into graphql/model.rs, continuing to expose most of the existing field-specific filter params to the user for compatibility/ease of use
treat all expressions that share the same field as OR statements
The text was updated successfully, but these errors were encountered:
The existing filter logic creates two kinds of OR statements:
Same field, multiple values [same operator]: e.g. filter_param_1 might be used to check for works whose workType equals monograph OR edited_book (this case was covered in the original design above)
Same value, multiple fields [same operator]: e.g. filter might be used to check for works whose title OR abstract contains keyword
Originally posted by @ja573 in #484 (review)
To do:
filter
,filter_param_1
,filter_param_2
andfilter_param_3
inCrud::all()
andCrud::count()
with a singlefilters
param, as abovecrud.rs
modules intographql/model.rs
, continuing to expose most of the existing field-specific filter params to the user for compatibility/ease of useOR
statementsThe text was updated successfully, but these errors were encountered: