We can truncate a full collection but we may want to completely remove some documents from the database.
Add a prune command that can prune docs based on the provided filter
mutation {
prune_User( filter: { name: { _eq: "John" } } ) {
_docID
}
}
Note: Pruning does not mutate the document. It doesn't delete it from the network's perspective. It only removes documents from the local node.
We can truncate a full collection but we may want to completely remove some documents from the database.
Add a
prunecommand that can prune docs based on the provided filterNote: Pruning does not mutate the document. It doesn't delete it from the network's perspective. It only removes documents from the local node.