How do I specify a partitionKeyField when fetching a Cassandra type?


It’s been suggested that I pass a partition filter key when fetching cassandra types. How do I do that? I tried passing it as a filter expression, but that doesn’t work, and I don’t see anything about it in FetchSpec type.


In the @db annotation of that type, there is a field that is specified as the partitionKeyField. When fetching the type, you must specify a filter on that field. I.e., if the partitionKeyField is parent, you must specify a filter like == [some id].


Follow up question:
If I am fetching on a number of rows, what would be the value of [some id]? Does the partitionKeyField not come into play in that case?