What are the restrictions for a Couchabse
Document's ID string?
- Length?
- Are special characters allowed?
- What does the string have to start and end with?
var properties = new Dictionary<string, object>
{
{"title", "Little, Big"},
{"author", "John Crowley"},
{"published", 1982}
};
var document = database.GetDocument("978-0061120053");
Debug.Assert(document != null);
var rev = document.PutProperties(properties);
On var document = database.GetDocument("978-0061120053");
what can be used in place of "978-0061120053"
?
Quoting from the Couchbase Developer guide these are the only limits on keys: