Query index inside a patch javascript

15 views
Skip to first unread message

Plamen Boudinov

unread,
Mar 28, 2017, 3:48:29 AM3/28/17
to RavenDB - 2nd generation document database
There is LoadDocument you can use inside a patch javascript.
Is it possible to query an index though? I guess it should be possible to use the http api, like:

http://localhost:8080/databases/{database name}/indexes/dynamic/CollectionName

But do you have an http client available in a patch script?

Thanks

Oren Eini (Ayende Rahien)

unread,
Mar 28, 2017, 4:14:46 AM3/28/17
to ravendb
No, it is not possible to run a query during patch, nor is it possible to access the HTTP API when doing so.
If you need to do that, do this in your own code and no via a patch

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages