How to query RavenDB using HTTP API for all documents of a type -
How to query RavenDB using HTTP API for all documents of a type -
i'm trying query ravendb using http client documents type. collection of documents given type.
i understand there might limitations first 1024 documents returned. under number , besides it's proof of concept.
i able obtain documents using next syntax:
http://localhost:8080/databases/{database name}/docs/ i see utilize @metadata field documents of type want don't know syntax.
since http api allows query indexes, attempted write static index. when wrote index raven studio, index not returning documents of type wanted. giving 0 results.
doc in docs.mytype select new { doc}; i tried this:
doc in docs allow tag = doc["@metadata"]["raven-entity-name"] tag == "mytype" select new { doc};
you can using:
http://localhost:8080/databases/{database name}/indexes/dynamic/collectionname ravendb ravendb-http
Comments
Post a Comment