1
我想紋波https://github.com/basho/ripple將數據保存到了Riak,我創建一個模型:如何通過漣漪許多關聯獲得記錄?
class Person
include Ripple::Document
property :name, String
many :friends, :class_name => "Person"
end
如果有兩個人模式的情況下,如何知道一個人是對方的朋友或不?像:
person.friends.get(somekey)