Get one document via POST route #464
jordanchubb
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment 2 replies
-
Hi @jordanchubb 👋 Can you please tell us more about your use case and why you need to fetch one document your case? Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently you can only 'get one document' via the GET route.
If using api authentication, fetching a document using GET requires a CORS pre-flight request. This degrades performance as this pre-flight can not be cached.
You should be able to 'get one document', or' get documents', via the POST route so the pre-flight request can be cached for improved performance. You can search via the POST route for this very reason, and I think it should be extended for fetching documents.
Beta Was this translation helpful? Give feedback.
All reactions