Answer the question
In order to leave comments, you need to log in
Is it possible to get a JSON response from SQL with nested child tables?
Decided to learn SQL, used MongoDB under NodeJS with ODM Mongoose. There it was possible to set the dependencies of the collections and, if necessary, pull them up for a specific field.
The result was something like this
{
"user": {
"username":"blablabla",
"documents": [{...}, {...}] // собственно колекция которую можно подтянуть
}
}
Answer the question
In order to leave comments, you need to log in
If your vendor folder is in the same directory as the executable script, then:
require_once("vendor/autoload.php");
then write use if necessary
Not an answer to the question, but if anyone needs to install composer on Centos 7 blog.ivru.net/?id=83
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question