azure-cosmosdb

Deserialize JSON into multiple inherited classes

二次信任 提交于 2021-02-11 09:18:10
问题 When I serialize my JSON object out of DocumentDB, my Control is not deserializing into the OptionsControl with the Options property. I have the following class, Control : public class Control : IControl { public Guid Id { get; set; } public virtual Enums.ControlType Type { get; set; } public string PropertyName { get; set; } public string ControlCssClass { get; set; } public string Description { get; set; } } I also have OptionsControl , which inherits from Control : public class

How do you connect to a Cosmos Db (primarily updated via SQL API) using Gremlin.Net ? (can you?)

早过忘川 提交于 2021-02-10 15:58:11
问题 Im working on a Cosmos DB app that stores both standard documents and graph documents. We are saving both types via the documentdb api and I am able to run graph queries that return Graphson using the DocumentClient.CreateGremlinQuery method. This graphson is to be read by a web app and the graph displayed for user viewing and so on. My issue is that I cannot define the version of the Graphson format returned when using the Microsoft.Azure.Graphs method. So i looked into Gremlin.net and that

How do you connect to a Cosmos Db (primarily updated via SQL API) using Gremlin.Net ? (can you?)

混江龙づ霸主 提交于 2021-02-10 15:56:02
问题 Im working on a Cosmos DB app that stores both standard documents and graph documents. We are saving both types via the documentdb api and I am able to run graph queries that return Graphson using the DocumentClient.CreateGremlinQuery method. This graphson is to be read by a web app and the graph displayed for user viewing and so on. My issue is that I cannot define the version of the Graphson format returned when using the Microsoft.Azure.Graphs method. So i looked into Gremlin.net and that

Cannot create Collection Information — error when trying to test Cosmos DB trigger locally

…衆ロ難τιáo~ 提交于 2021-02-10 13:16:12
问题 I am testing out developing an Azure Function to read the change feed of a Cosmos DB database. I have created such a function from the Azure portal, but I would like to use VS or VS Code to do so. I have my environment set up using v2.0.3 of the Azure Function Core Tools, but when I try to test the function, I get the following error: [10/9/2018 4:33:34 PM] Error indexing method 'Functions.workordersTrigger' [10/9/2018 4:33:34 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions

Cannot create Collection Information — error when trying to test Cosmos DB trigger locally

风流意气都作罢 提交于 2021-02-10 13:15:54
问题 I am testing out developing an Azure Function to read the change feed of a Cosmos DB database. I have created such a function from the Azure portal, but I would like to use VS or VS Code to do so. I have my environment set up using v2.0.3 of the Azure Function Core Tools, but when I try to test the function, I get the following error: [10/9/2018 4:33:34 PM] Error indexing method 'Functions.workordersTrigger' [10/9/2018 4:33:34 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions

Cannot create Collection Information — error when trying to test Cosmos DB trigger locally

时光总嘲笑我的痴心妄想 提交于 2021-02-10 13:15:33
问题 I am testing out developing an Azure Function to read the change feed of a Cosmos DB database. I have created such a function from the Azure portal, but I would like to use VS or VS Code to do so. I have my environment set up using v2.0.3 of the Azure Function Core Tools, but when I try to test the function, I get the following error: [10/9/2018 4:33:34 PM] Error indexing method 'Functions.workordersTrigger' [10/9/2018 4:33:34 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions

Azure Search Indexer cannot retrieve a GeographyPoint filed from a document in DocumentDB

两盒软妹~` 提交于 2021-02-10 05:02:08
问题 I'm having an issue while trying to index a document stored in a DocumentDb collection. The datasource of the indexer was defined with a custom SQL to retrieve the changed documents. The document I want to index has a property called LocationGP which is a Microsoft.Spatial.GeographyPoint, and is mapped to a field of the index with the same name and defined as DataType.GeographyPoint The error I get when trying to create the indexer is: Column 'LocationGP' is of type JObject that is not

Azure Search Indexer cannot retrieve a GeographyPoint filed from a document in DocumentDB

偶尔善良 提交于 2021-02-10 05:01:47
问题 I'm having an issue while trying to index a document stored in a DocumentDb collection. The datasource of the indexer was defined with a custom SQL to retrieve the changed documents. The document I want to index has a property called LocationGP which is a Microsoft.Spatial.GeographyPoint, and is mapped to a field of the index with the same name and defined as DataType.GeographyPoint The error I get when trying to create the indexer is: Column 'LocationGP' is of type JObject that is not

Where is AccountKey for CosmosDB in Azure portal

痞子三分冷 提交于 2021-02-08 15:17:14
问题 I am trying to migrate mongodb data to Cosmos db. The migration tool I am using, is asking for "AccountKey" required to connect the Cosmosdb. I am not able to get the account key in azure portal. https://portal.azure.com 回答1: You can find the AccountKey from Settings -> ConnectionString -> Primary Password when you click on your cosmosDB resource 回答2: Navigate to Settings -> Keys to view Primary Key as well as Connection String for CosmosDB in Azure Portal 来源: https://stackoverflow.com

Scalardb QA application not properly working with Azure Cosmos DB

我怕爱的太早我们不能终老 提交于 2021-02-08 10:04:54
问题 I tried to start scalardb backend QA application with Azure Cosmos DB. The Spring boot application shows as started. But I couldn't access the QA backend application with port 8090. Port 8090 does not list in listening ports lsof -i -P -n | grep LISTEN . QA backend Application When we connect it with the QA frontend application, it shows an error message An error occurred during the login QA frontend Application Step to reproduce Cosmos DB Account Creation Create an Azure Cosmos DB account