Hey :wave: Does anyone know of something similar ...
# orm-help
k
Hey đź‘‹ Does anyone know of something similar to deepr? I need something like graphql resolvers, but only for js/ts. I don't want to expose a graphql api, I want to simplify the cases where I'm combining multiple prisma db calls with other external api calls to form a final object
d
Hey @kitze 👋, I think this might be similar to what you’re looking for: https://github.com/brillout/wildcard-api#readme Are you looking for something that will allow you to make such calls from the frontend? Like a “no-api API layer”?
k
Thanks @Daniel Norman. Not really, I'm already using Blitz.js which is "no api" but in the internal resolvers i'm combining a bunch of prisma calls + external api calls
👍 1
example
this gets really messy especially when I want to reuse it or make it configurable
d
If I understand correctly, in that example you’re making a bunch of async calls (some depend on data from a previous call). What are you trying to improve/achieve? Make that code block more reusable for different scenarios?
k
in another file, i want to use similar computed fields and api calls for
subscription
, but in a loop for
memberships
so I need something like graphql, but not a graphql api
just a data resolver library thingie ( i really don't know how to explain this)
d
Perhaps you mean the data loader pattern? https://github.com/graphql/dataloader
Btw, that library isn’t exclusive for GraphQL APIs