The TinyDB forum has found a new home at GitHub discussions. The content here remains as a read-only archive.
return db.all() I use this query, but i want to get the doc_id.
Hey Sallyzhu ,
you could use something like this to get the document ID:
docs = db.all() print(docs[0].doc_id)