graphiti icon indicating copy to clipboard operation
graphiti copied to clipboard

Missing stats & meta from remote resources

Open eslamodeh opened this issue 1 year ago • 0 comments

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

eslamodeh avatar Mar 18 '25 09:03 eslamodeh