Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1122

Query certain properties given their "visibility"

$
0
0

Hello, I’d like to Query some properties from my Document if their “read” nested property is “Public”, here I attach the Document JSON structure :

{
	type: "avatar",
	name:{
		read: "Public",	
		write: "Private",
		value: "Tomas Garcia"
	},
	email:{
		read: "Public",	
		write: "Private",
		value: "Email"
	},
	phone:{
		read: "Private",	
		write: "Private",
		value: 123456789
	}
}

In this case the query should return the whole document without the phone property. It should be some SelectResult.expression(…) but I don’t really know how to do it for every property. Any ideas?

Thanks in advance!
P.D: Is an Android App in Java :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1122