How to run a query on google cloud datastore?

16 views
Skip to first unread message

Natty Millers

unread,
Nov 18, 2017, 12:08:58 PM11/18/17
to scalatra-user
I am new to scalatra! and I want to create an app using scalatra as backend and google cloud as database.
However, the problem is that when i tried to run a query on datastore, intelliJ inspection gives 'cannot resolve symbol run'. 
So I was wandering if it is not the right syntax for scalatra.

Here is my code...

    val kindName = "Person"
val query = Query.newEntityQueryBuilder().setKind(kindName).build()
val results = datastore.run(query)

davide.a...@blis.com

unread,
Feb 14, 2018, 1:05:16 PM2/14/18
to scalatra-user
Did you add the Google Cloud SDK libraries in the your sbt config?

D.
Reply all
Reply to author
Forward
0 new messages