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

Add whereInAll argument for AND comparison of list of values on key #25

Open
ericdrosas87 opened this issue Dec 18, 2024 · 1 comment
Open
Assignees
Labels
needs testing implemented/fixed but needs testing

Comments

@ericdrosas87
Copy link
Contributor

User story

As a user viewing the gallery pages of the Rubin website, I would like to add filter key/values to narrow down the list to only images that contain all values so I can see images I am interested in.

Definition of done

I have added the whereInAll argument with intersection comparison.

@ericdrosas87 ericdrosas87 self-assigned this Dec 18, 2024
@ericdrosas87 ericdrosas87 assigned khalwat and unassigned ericdrosas87 Jan 24, 2025
@khalwat
Copy link
Collaborator

khalwat commented Jan 25, 2025

You can now pass in an array of arguments to any of the where methods, which will run the specified where for each item in the array, giving you effectively and functionality:

{
  entry(section: "blog") {
    ... on blog_blog_Entry {
      multipleImagesDam(
        whereIn: [{key: "default.Author", values: "Aliro Pizarro Díaz"}, {key: "width", values: "6000"}]
      ) {
        width
        name
        default {
          Size
          UploadedBy
          Dimensions
          GPS
          DateUploaded
          DateModified
          Name
          Copyright
          ModifiedBy
          LowJPG
          ContentType
          Author
          DateCreated
          Resolution
        }
      }
    }
  }
}

khalwat added a commit that referenced this issue Jan 25, 2025
@khalwat khalwat added the needs testing implemented/fixed but needs testing label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs testing implemented/fixed but needs testing
Projects
None yet
Development

No branches or pull requests

2 participants