D
D
Dream2021-05-22 17:18:31
Python
Dream, 2021-05-22 17:18:31

Is it possible to make data inside PyMongo list items?

How to make a list where there were items inside and each item had its own data? But, if they are the same (objects), then the data in them is also the same.

Example:
The user has a cart (Array List), there are products inside the cart, and each product has its own cost. But if the user has the same items (for example, apples), then 2 apples cost the same

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2021-05-23
@zoonman

Can.
To understand how to do this, you need to go back to how databases work in general. Well, learn data structures. Based on your question, you have no idea what you are talking about.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question