N
N
Nikita Kudrin2020-09-13 19:01:11
MongoDB
Nikita Kudrin, 2020-09-13 19:01:11

How to do collection lookups in MongoDB?

Is it possible to do this:
A person writes a command (let's say /dbcheck) to a bot, with variables /dbcheck [param1] [param2] and the bot looked in the database for a collection with the name that was specified in param1 and searched in this collection for the text written in param2 .
And did you send the line where you found this text to a person?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-13
@HepkaPlay

param1and param2=== and then just look for these arguments in the database. args[1]args[2]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question