What is the data structure of the last piece of mongodb data obtained by python?

demand:
1. Get the last piece of data from mongodb that is the most table structure

difficulty:
1.document contains subdocuments

I don"t know how to implement it.

Mar.02,2021

be clear, your question


demand:
1. Get the table structure of the last piece of data in a collection of mongodb, and then generate the hive see table statement

difficulty:
1.document contains subdocuments


.sort ({time:-1})
.limit (1)
time replace the fields you need to sort. Document contains subdocuments. Please see the usage of $project

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd594c-45520.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd594c-45520.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?