Re: Count many_to_many relation

2022-08-01 Thread Jeremy Evans
On Mon, Aug 1, 2022 at 9:05 AM fvbe...@gmail.com wrote: > Hi, > > How can I count a many_to_many relations when retrieving the list? > > Example: > > > # models > > class Artist < Sequel::Model(db[:artists]) > db[:artists] > Note that this db[:artists] call does nothing, you should

Count many_to_many relation

2022-08-01 Thread fvbe...@gmail.com
Hi, How can I count a many_to_many relations when retrieving the list? Example: # models class Artist < Sequel::Model(db[:artists]) db[:artists] many_to_many( :albums, class: Album, join_table: :artist_albums, join_table_db: db, left_key: