Hi i am trying to fetch one single column list in DbFlow
I get all match details when i use this
public List<Match> getMatchDetails() {
return SQLite.select()
.from(Match.class)
.queryList();
}
But I actually need a list of scores of all matches, so I tried to fetch score details like this.
public List<String> getScore() {
return SQLite.select(Match_Table.score) // (score is string)
.from(Match.class)
.queryList();
}
But still I can fetch details as List<Match> and not List<String>. Am I doing anything wrong?