Skip to content

Instantly share code, notes, and snippets.

@tomblench
Created June 20, 2018 10:19
Show Gist options
  • Save tomblench/909e5ea69428d1da2cb4c8c40b60b5a5 to your computer and use it in GitHub Desktop.
Save tomblench/909e5ea69428d1da2cb4c8c40b60b5a5 to your computer and use it in GitHub Desktop.
### 1. Steps to reproduce and a small code sample that demonstrates the issue
<!--
// Example: a code sample which creates a document in the local document store.
DocumentStore documentStore;
// ...
DocumentRevision doc = new DocumentRevision();
doc.setBody(DocumentBodyFactory.create("{\"_foo\":\"bar\"}".getBytes()));
documentStore.database().create(doc);
-->
### 2. What you expected to happen
<!--
Example:
I expected the document to be saved to the local document store.
-->
### 3.
<!--
Example:
The following exception was thrown:
"com.cloudant.sync.documentstore.InvalidDocumentException: Field name start with '_' is not allowed."
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment