@ View ( name = "by_linkedid" , map = "function(doc) { if(doc.linkedid){ emit(doc.linkedid, doc) } }" ) public CouchDbProfileDocument findByLinkedid ( final String linkedid ) { return queryView ( "by_linkedid" , linkedid ) . stream ( ) . findFirst ( ) . orElse ( null ) ; }
Find profile by linkedid .