azure-cosmosdb-sqlapi Questions

4

Solved

Have have following partion id on my container: /vesselId I am trying to add a collection of this object: public class CoachVessel { [JsonProperty("id")] public string vesselId { get; s...
Vertigo asked 8/7, 2020 at 14:46

6

Solved

If go to https://portal.azure.com, open our Azure Cosmos DB account (1) --> Data Explorer (2) --> Click on users (3) --> Click on New SQL Query: Azure will open a text box to enter a Quer...
Lukin asked 17/8, 2019 at 20:28

5

Solved

Can I write an UPDATE statement for Azure Cosmos DB? The SQL API supports queries, but what about updates? In particular, I am looking to update documents without having to retrieve the whole docu...
Heartworm asked 15/5, 2019 at 18:23

5

I am new to cosmos db. I chose cosmos db (core sql), created a database having two containers say EmployeeContainer and DepartmentContainer. Now I want to query these two container and want to fetc...
Hesper asked 22/6, 2020 at 10:40

2

I am integrated my spring boot application with azure CosmosDB-SQL API and for integration test cases i want to use in memory database but trying with H2 in memory it's not working
Urita asked 19/3, 2019 at 13:19

5

Solved

Below is the code that I have: List<PatchOperation> patchOperations = new List<PatchOperation>(); patchOperations.Add(PatchOperation.Replace("/endpointId", 100)); string id =...
Tendency asked 6/9, 2021 at 7:8

2

Solved

A container has a function called ReadItemAsync. The problem is I do not have the partition key, but only the id of the document. What is the best approach to get just a single item then? Do I have...
Crashaw asked 9/7, 2020 at 15:37

2

Solved

I'm trying to patch a child object of a Cosmos Db document using the new Partial Document Update feature. However, I can't find a way to do it. If the document looks like below, how would you updat...
Olivero asked 24/11, 2021 at 13:32

2

Solved

On https://portal.azure.com/ - Cosmos DB Data Explorer, I can execute SQL queries. The result output is 100: SELECT c.email FROM Clients c To reduce the number of network round trips required ...
Lethargy asked 3/12, 2019 at 17:43

3

I am trying to write a parameterized query that has IN clause. For Ex : Working code Input string : "'guid1','guid2','guid3'" public List<Employee> GetEmployeeIds(string ids){ Query...

4

Solved

Entity framework has some nice documentation about Embedding entities but I cannot figure out how to embed a simple string array IEnumerable<string>. Sample class public class Post { public ...
Kyliekylila asked 13/11, 2020 at 10:39

2

When I try to import CosmosClient from azure.cosmos, I get a ModuleNotFoundError, like the azure-cosmos library was not installed: $ python3.6 -c "from azure.cosmos import CosmosClient" ...
Muriah asked 17/2, 2022 at 16:22

3

Solved

I am New to Cosmos DB. I am retrieving records using SQL API.now i want to add "Not In" in ARRAY_CONTAINS. I did lots of R&D for the same but not able to find out any solutions.
Cabbageworm asked 17/12, 2019 at 10:28

1

Solved

Trying to add a new item into a parent object's child collection. For example, in the code below, how would one go about adding a new Item to the Items collection? { "id": "SalesOrd...
React asked 18/1, 2022 at 11:53

3

Solved

I would like to reduce load on Azure Cosmos DB SQL-API, which is called from a .NET Core Web API with dependency injection. In App Insights, I have noticed that every call to the Web API results i...
Pneumodynamics asked 15/6, 2020 at 7:19

1

Solved

We have recently started testing Cosmos DB as a persistent storage for our Orleans Cluster. Our scenario for Cosmos DB is as a Key-Value Store with low-latency and a high amount of Replace, Point R...
Italy asked 20/8, 2021 at 21:16

2

Suppose I've the following data in my container: { "id": "1DBF704E-1623-4844-DC86-EFA729A5C048", "firstName": "Wylie", "lastName": "Ramsey&...

1

I have Collection items in my cosmos db container.My sample data is { "objectID": "abc", "id": "123", "name": "gfh", "descriptio...
Assess asked 24/6, 2021 at 11:26

3

I've got a docker-compose project in Visual Studio which starts 3 services. One of them use cosmosdb. I've followed the instructions on https://hub.docker.com/r/microsoft/azure-cosmosdb-emulator/ ...

1

I'd like to store several different object types in a single Cosmos DB container, as they are all logically grouped and make sense to read together by timestamp to avoid extra HTTP calls. However, ...
Treadwell asked 16/3, 2021 at 16:39

2

Solved

I am trying to use the following query to see if I have duplicates in the DB SELECT c.VariantNo, count(1) AS jongel FROM c where c.brand = 'XXXX' AND c.Consumer = 'XXX_V2' GROUP BY c.VariantNo HAV...
Dick asked 14/5, 2020 at 4:28

1

Solved

I am creating a query to cosmos using Linq This is converted into SQL which is then run to do the search var modelName = "Mondeo"; var baseQuery = client.CreateDocumentQuery<Car>(StaticSett...
Freezing asked 9/3, 2020 at 11:1

1

Goal: To return the count of distinct values of a particular document field within a partition of a Cosmos collection. Steps: If I run the following query on my Azure Cosmos database, SELECT D...
Singles asked 16/5, 2020 at 22:36

2

Solved

I've been following the official documentation here: https://learn.microsoft.com/en-us/azure/cosmos-db/sql-api-get-started#Query But I can't figure out how to correctly use a LINQ expression inste...
Pericope asked 23/7, 2019 at 8:40

1

Solved

I've done a bit of research on using session token in cosmosdb's dotnet v3 sdk, and so far I found these two links that give me some hints on how to use it: utilize-session-tokens and how-to-conver...

© 2022 - 2024 — McMap. All rights reserved.