Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find operation using msg.payload #47

Open
0javad0 opened this issue Oct 9, 2020 · 1 comment
Open

Find operation using msg.payload #47

0javad0 opened this issue Oct 9, 2020 · 1 comment

Comments

@0javad0
Copy link

0javad0 commented Oct 9, 2020

Hello there,
I was wondering if you could check and see why the "find" operation is not supported. The "findOne" operation gently returns the value but it is not the case for "find":
What I am deploying for "find" is:
//
msg.collection = "Collection_1"
msg.operation = "find";
msg.payload = {'Name' : 'John'};
msg.limit = 2;
msg.sort = {"_id":-1}
return msg;
//
error message: "No operation defined"
//
or even if you have an alternative solution? sharing it it is much appreciated.

@s4ke
Copy link

s4ke commented Nov 12, 2020

@0javad0 you could try find.toArray

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants