You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build a new object with all of the members you want to serialize into JSON. In this example, the type has a unique identifier, and fields for category, name, quantity, price, and sale. Create an item in the container using `container.items.upsert`. This method "upserts" the item effectively replacing the item if it already exists.
Perform a point read operation by using both the unique identifier (`id`) and partition key fields. Use `container.item` to get a pointer to an item and `item.read` to efficiently retrieve the specific item.
Perform a query over multiple items in a container using `container.items.query`. Find all items within a specified category using this parameterized query:
@@ -188,8 +228,16 @@ SELECT * FROM products p WHERE p.category = @category
188
228
189
229
Fetch all of the results of the query using `query.fetchAll`. Loop through the results of the query.
0 commit comments