graphiti
graphiti copied to clipboard
Missing stats & meta from remote resources
Hello everyone,
I was wondering whether we have to update the resolve function to parse the meta & stats? At the moment, this is not accessible:
irb(main):020:0> resource_klass.adapter
=> Graphiti::Adapters::GraphitiAPI
irb(main):021:0> resource_klass.all(stats: { total: 'count' }).meta
=> {}
irb(main):022:0> resource_klass.all(stats: { total: 'count' }).stats
=> {:total=>{:count=>nil}}
https://github.com/graphiti-api/graphiti/blob/e3cffe4c977c1ac6bc83fb8e3118348f38d9261f/lib/graphiti/adapters/graphiti_api.rb#L8-L20