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

[feature] Adds a custom GraphQL directive to filter nested keys #1615

Closed
pxp928 opened this issue Jan 2, 2024 · 1 comment · Fixed by #1618
Closed

[feature] Adds a custom GraphQL directive to filter nested keys #1615

pxp928 opened this issue Jan 2, 2024 · 1 comment · Fixed by #1618
Labels
enhancement New feature or request

Comments

@pxp928
Copy link
Collaborator

pxp928 commented Jan 2, 2024

Is your feature request related to a problem? Please describe.
#1610 introduced the ability to filter results via contains and startswith but this does not work on nested fields such as subject.id, subject.algorithm or subject.digest in the query below:


query GetAllSLSA {

  HasSLSA (hasSLSASpec: {}) @filter(keyName: "subject.id", operation: CONTAINS, value: "710") {

  id

 subject {

    id

    algorithm

    digest

  }

  }

}

Describe the solution you'd like
Have the ability to query nested keys with contains and startsWith with custom GraphQL directive.

@pxp928 pxp928 added the enhancement New feature or request label Jan 2, 2024
@pxp928
Copy link
Collaborator Author

pxp928 commented Jan 2, 2024

FYI @kanchan-dhamane, created the issue to capture the update from PR #1610. Thank You!

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

Successfully merging a pull request may close this issue.

1 participant