Simon Thiboutôt

Results 72 comments of Simon Thiboutôt

> So basically - there are fairly easy overrides built for this purpose, but it gets very boilerplatey when you want a comprehensive override for all behavior. So, you could...

> That's one route, the other is to just build this into graphiti itself, lots of code changes to alias ? send(alias[name]) : send(name). This would be great to see,...

@richmolj I am available if you need help for this issue. 🙋‍♂️

All right, I will continue my digging. 🔎

@richmolj is @wadetandy suggestion something that could be added to the library?

I think it would be nice to be able to configure the ID attribute from an abstract resource I'm think about `::default_id_sttribute=(definition)` or `::default_id_attribute(type, options = {}, &blk)`.

What about something like this? https://github.com/graphiti-api/graphiti/compare/master...masterT:add-resource-id-attribute-definition?expand=1

I dig into the code and see how it could be done.

@richmolj how can I set it for resource collection response (not is the `stats` key)?

I think this can be closed. 🙂