I’m running Couchbase Lite 2.0.3 together with CouchbaseDB and GW.
All the documents are synced to Couchbase Lite and already created in CouchbaseDB.
Running the following query always returns a empty Dictionary with no keys and values for the documents created through SDK or directly on the DB server.
using (var SearchQuery = QueryBuilder
var results = SearchQuery.Execute().ToList();
var entrys = results.Select(x => x.GetDictionary(0).ToDictionary(y => y.Key, y => y.Value));
The variable results count is greater than 0 and i can see that the count amount match up (compared to the bucket i sync).
Even if i run, var doc = Database.GetDocument(“Project::123”) i get an empty Dictionary with no keys and values for the documents created through SDK or direct on the DB server.
For documents created in Couchbase Lite contains a Dictionary with keys and values when using the above examples.
Is there anything i’m missing?
What do you mean by CouchbaseDB? Couchbase Server? It doesn’t look like you are missing anything but not all the information is here. Are your pull replications finishing correctly, etc?
Sorry, i mean Couchbase Server.
Yes, the replication finish without any errors.
The Bucket only contains (for now) 4 documents that i have created.
The documents looks like this:
“name”: “The Name”,
Documents created on the Lite database get synced correctly.
I’ve never heard of anything like this, so I am not sure of what is going on. If you can reproduce it easily then I’d file a Github issue for it so that it can get examined.
Just to be sure (before posting issue), Couchbase Lite supports .Net Core 2.0 (Console Application) and .Net Standard?
Got all my logic in a .Net standard project and a Console application for presenting…
Did another test,
- Created a document in CBL.
- Start replication.
- The document shows up in Couchbase server.
- Did a query, manage to grab the dictionary from the document.
- Wiped the CBL database (completly removed the folder with db files).
- Created a new CBL database and started replicating.
- Did a new query, could not get the dictionary from the document. (Same result as my previous post)