Questions tagged [document-database]

A document database stores, retrieves, and manages document-oriented information, also known as semi-structured data. Document databases often store data in a denormalized fashion as opposed to normalized data, which would appear in a relational database.

An excerpt from Wikipedia:

The central concept of a document-oriented database is the notion of a document. While each document-oriented database implementation differs on the details of this definition, in general, they all assume documents encapsulate and encode data (or information) in some standard formats or encodings. Encodings in use include XML, YAML, JSON, and BSON, as well as binary forms like PDF and Microsoft Office documents (MS Word, Excel, and so on).

Examples of document databases:

232 questions
1
vote
1 answer

Delete multiple documents of a particular collection matching a criteria in RavenDB

I am trying to delete multiple documents of a particular collection meeting certain criteria. Ideally after deleting these documents I need to add new documents. Even though the new documents are added successfully to the collections, when it comes…
prasadv
  • 73
  • 5
1
vote
3 answers

Reading single document from DocumentDB

I cannot read single document by id from DocumentDB. I am building application and I have exact problem like this one. I don't understand what am I missing. Let's say I have Users collection and I have /UserId for my partition key, I cannot read…
zuboje
  • 696
  • 3
  • 11
  • 28
1
vote
2 answers

Document Database - Many-to-many

Lets say we mimic the behaviour of a many-to-many relationship between Users and UserGroups, and we're storing the ID's of which UserGroups a User is in, in the User document within an array. Now when i delete a UserGroup then the ID of that…
ebb
  • 9,297
  • 18
  • 72
  • 123
1
vote
1 answer

Select distinct on DocumentDB and C#

I am having a challenge retrieving data from my DocumentDB using C#. I get the expected results when I run the query below in my Azure DocumentDB data explorer. Ignore the use of contains query, it's a dynamically crafted query select distinct…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
1
vote
1 answer

Is it possible to use inheritance with CosmosDB collections?

I'm new to understanding NoSQL databases. Suppose I have a hierarchy like public interface MyInterface { [JsonProperty("id")] Guid Id { get; } } public class Foo : MyInterface { public Guid Id { get; set; } …
See Sharp
  • 379
  • 1
  • 4
  • 11
1
vote
0 answers

Distinct Query is not properly working in Cosmos DB

I have about 100 thousand records in Cosmos DB. I want to get the distinct records by some property. I am using Stored Procedure to acheive this and sets the page size to -1 to get the maximum records. When i fire a query without distinct, i get…
Naveen Prasath
  • 539
  • 1
  • 3
  • 23
1
vote
0 answers

Empty list in Ravendb index creating exception

I have a problem that an index I've made when queried is throwing an exception : Could not read value for property: Members Here is the index : public class GroupsNameIdIndex : AbstractIndexCreationTask
BMills
  • 881
  • 1
  • 10
  • 24
1
vote
1 answer

is there a query in cosmos documentDB with a search until rule

so i am trying to query some data from a cosmos documentdb database as follows here is my data : { "id": "**********", "triggers": [ { "type": "enter_an_area", "trigger_identity": "***********", }, }, { …
ibrahim.bond
  • 127
  • 1
  • 3
  • 12
1
vote
1 answer

CouchDB 2.0+ count all documents with a certain field value

I'm new to CouchDB and I'm looking for the best way to perform the following count: I've got documents that look like this: { field_1: "some_string", field_2: "some_other_string" } I want to count all documents that have a certain value in field_2,…
Sasha Fonseca
  • 2,257
  • 23
  • 41
1
vote
1 answer

Query CosmosDB from Azure Function .csx

I want to query a CosmosDB collection to see if a document already exists from within a Azure Function using csx. As well as the following code I have an implicit binding towards the cosmosDB collection to be able to create new documents. This is…
selbu
  • 106
  • 1
  • 8
1
vote
1 answer

Insert a nested document into a DocumentDB doc using Node.js

what's the best way to insert a nested document into the following? { "id": "3af62b94-2031-4b85-9fd3-e13e7217d382", "Email": "test@ingeniuus.com", "Name": "test", "OrgRoles": null, "UpdatedDate": "2017-11-10T10:49:11.1962998Z", …
DarkW1nter
  • 2,933
  • 11
  • 67
  • 120
1
vote
1 answer

Executing SQL query joins on Cosmos DB using Azure Mobile Apps for Node

I'm currently developing a back end for a mobile system using Azure Mobile Apps with Node.js and Azure Cosmos DB (Document DB). I'm using the example that was given…
1
vote
1 answer

Is there a way to only update a single property value with Google Cloud Datastore?

My project has an Article kind. Then, there is a Block kind. Each Block has an article as parent entity; therefore, each article is made up of several Block entities. Each Block has an order property so the end-user can order them. On the frontend,…
1
vote
1 answer

CosmosDB crashing on launch GatewayServiceStartup

Just installed CosmosDB emulator 1.19 and ran into issues upon startup. GatewayServiceStartup stops working upon launch. Does anyone have any idea?
Mr. 笑哥
  • 283
  • 1
  • 5
  • 15
1
vote
1 answer

DocumentDB document link for Azure Cosmos DB

If I have an Azure Cosmos database with the following setup Database name: MyDatabase Collection: MyCollection How would I use UriFactory to create a document link to use in CreateDocumentAsync(documentLink, document)? I had a look at the Microsoft…
DarkW1nter
  • 2,933
  • 11
  • 67
  • 120