This looks awesome, we should have something like this, although it is more of a dba feature. Do we need to make cutOff mandatory? Why not give it a strict default value?
And when we are at it, why not?
DELETE /indexes/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
Which is the equivalent of:
DELETE Users
WHERE LastLogin < '2010-05-10'
This looks awesome, we should have something like this, although it is more of a dba feature. Do we need to make cutOff mandatory? Why not give it a strict default value?
And when we are at it, why not?
DELETE /indexes/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
Which is the equivalent of:
DELETE Users
WHERE LastLogin < '2010-05-10'
From: rav...@googlegroups.com [mailto:rav...@googlegroups.com] On Behalf Of Ayende Rahien
Sent: 22. mai 2010 23:19
To: ravendb
That’s true.
But that tells us that we might make another endpoint for the patch too, maybe the same endpoint for the two operations.
DELETE /[batchoperation]/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
PATCH /[batchoperation]/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
[
{ "Type": "set", "Name": "IsActive", "Value": false }
]
That’s true.
But that tells us that we might make another endpoint for the patch too, maybe the same endpoint for the two operations.
DELETE /[batchoperation]/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
PATCH /[batchoperation]/UsersByLastLogin?query=LastLogin:[NULL TO 20100510]
[
{ "Type": "set", "Name": "IsActive", "Value": false }
]
From: rav...@googlegroups.com [mailto:rav...@googlegroups.com] On Behalf Of Ayende Rahien
Sent: 22. mai 2010 23:56
To: rav...@googlegroups.com