How do I find attachments in ravendb 3.5?

假装没事ソ 提交于 2019-12-11 00:07:33

问题


I'm currently debugging some code which is supposed to return an attachment for a given document, but no attachment is coming back. Raven studio indicates that there are attachments in the database - it shows me that a number of attachments exist - but I can't see, via the studio web UI, if a particular document has an attachment.

Is there a way to query attachments via the studio UI? Also is there a way to tell if a document has an attachment via the studio UI? Online documentation don't seem to be clear on this. Alternatively is there a way to query ravendb using the http API for attachments?

I've tried the url suggested in RavenDB attachments but it returned an empty array as a response


回答1:


GET databases/{databaseName}/static/ will give you the list of attachments in the db.



来源:https://stackoverflow.com/questions/57380678/how-do-i-find-attachments-in-ravendb-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!