Prerequisites
Toolbox version
toolbox version 0.14.0
Environment
No response
Client
No response
Expected Behavior
Based on the below configuration:
tools:
find_documents_in_collection:
kind: mongodb-find
source: mongodb-source
description: >-
Finds and lists multiple documents from the given collection.
Use this for general searches or when you expect a list of results.
database: xxxxxx
collection: xxxxxx
limit: 5
Only 5 records should be returned because the limit is 5.
Current Behavior
The limit parameter is not being applied to the MongoDB query.
Steps to reproduce?
- create a tools.yaml file to connect to MongoDB
- Use the "find tool". Sample configuration is shared below for reference:
tools:
find_documents_in_collection:
kind: mongodb-find
source: mongodb-source
description: >-
Finds and lists multiple documents from the given collection.
Use this for general searches or when you expect a list of results.
database: xxxxxx
collection: xxxxxx
limit: 5
- The toolbox returns all the documents and does not respect the limit value
Additional Details
No response
Prerequisites
Toolbox version
toolbox version 0.14.0
Environment
No response
Client
No response
Expected Behavior
Based on the below configuration:
Only 5 records should be returned because the limit is 5.
Current Behavior
The limit parameter is not being applied to the MongoDB query.
Steps to reproduce?
Additional Details
No response