Natural Language Queries
Natural Language Query'
Run the Most Complex Queries with Ease using Natural Language Descriptions
We now let you run the most Complex Queries by just passing in your Collection Name
and a Natural Language Query
to fetch the data you need.
Some examples of the queries you can run are:
- Fetch all documents in a collection
- Fetch all documents in a collection where a field is equal to a value (You can describe the field and value in any way you want)
- Fetch all documents in a collection where a field is equal to a value and another field is equal to another value
- Fetch all documents in a collection where a field is equal to a value and sort the results by another field
- Fetch all documents in a collection where a field is equal to a value and sort the results by another field and limit the results to a certain number
curl
--location 'https://api.worqhat.com/api/collections/data/fetch/natural-query' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"collection": "Sample collection",
"query": "Fetch all data that is available and created in the past 24 hours
and sort by descending order"
}'
:::tip
The Query can be described in any manner you want.
:::
:::warning
The Natural Language Queries can sometimes be slower. It takes somewhere less than ~2 Seconds to process a Query
:::
Last modified: 4 months ago