Hello all,
could you please help a newbie(:me:) figure out why an UnsupportedOperationException is thrown when executing a query with a REST provider?
My code is below
object UserRepository extends Neo4jWrapper with RestGraphDatabaseServiceProvider with Cypher{
private val FETCH_USER_BY_EMAIL: String = "START user=node(*) WHERE (user.email = \"%s\") RETURN user LIMIT 1"
def uri: URI = new URI("
http://localhost:7474/db/data/")
def fetchForEmail(email: String) : Option[UserIdentity] = {
withTx {
implicit neo =>
val query = FETCH_USER_BY_EMAIL.format(email)
val users = query.execute.asCC[UserIdentity]("user")
if(users.isEmpty) Option.empty
else Option(users.next())
}
}
}
The stack trace is attached.
Any help you would be greatly appreciated.
Thank you.