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

Selecting records regardless of delete state? #17

Closed
nullfox opened this issue Nov 16, 2023 · 1 comment
Closed

Selecting records regardless of delete state? #17

nullfox opened this issue Nov 16, 2023 · 1 comment

Comments

@nullfox
Copy link

nullfox commented Nov 16, 2023

I see in the README that you can explicitly query deleted records by overriding the value automatically included by the middleware.

I'm looking to query for all records without regard for their deleted status. I tried doing an OR at the top level, but looking at the code, it only allows override of the specific deleted column meaning that even if I include an OR clause like the following, it's still overridden by the top level deletedAt = NULL

OR: [
  {
    deletedAt: {
      equals: null,
    },
  },
  {
    deletedAt: {
      not: null,
    },
  },
]

Is there a way to remove the top level deletedAt = NULL entirely so I can query for all records?

@nullfox
Copy link
Author

nullfox commented Nov 20, 2023

Closing due to solution found in an open PR here: #11 (comment)

@nullfox nullfox closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant