3 ms·
Not offtopic, but not quite the meat of your post: I would love to see a good solution for a drop-in JSON-API server library. Dunno how close what you're buildi
by steveklabnik 7y ago
Not offtopic, but not quite the meat of your post: I would love to see a good solution for a drop-in JSON-API server library. Dunno how close what you're building is to that, but it would be very very very cool!
- status_quo69 7y agoSomething in the vein of juniper but for JSON:API? That would be incredibly useful! I'm not at that stage yet, mainly hacking on https://github.com/zacharygolba/json-api-rs https://github.com/zacharygolba/json-api-rs to bring it up to rust 2018 and add some more niceties as well as bringing the rocket integration up to the async branch. What I'm working with right now is more of a pattern. It's a bit rough still and allows for too much recursion and N + 1 queries galore, but since my usual queries from my front-end are for single items it's been pretty nice. Maybe one day I'll be more up to snuff on macros to expand upon that DSL. I'm already starting to see some rough patches in my very tiny pattern with relationships