quick question, how can i get all
quick question, how can i get all records who do not have a linked entry, for example
would something like this work?
3 Replies
Hi, use the exists filter (https://xata.io/docs/sdk/filtering#control-operators) to select links that have an id set (so they're not null):
Filtering records
Use the Xata SDK to filter across APIs for versatile functionality
Similarly,
notExists
will do the opposite (select links without an id)my use case is to run a cron to delete all faulty market entries, this would not really happen but this is to be at a safer side