Content pfp
Content
@
0 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
Introducing API functions With today's 0.5.0 release, you can build custom API endpoints directly in your Ponder app. Use cases - Replace GraphQL with tRPC or REST - Build SQL queries with Drizzle - Merge onchain & offchain data
10 replies
22 recasts
314 reactions

Kevin pfp
Kevin
@typedarray.eth
Why build API functions? The automatic GraphQL API is too rigid. With more flexibility at the API layer, users can simplify their data models and indexing logic. Example: Don't create a "volume" or "chart" table, just write a simple aggregation query.
1 reply
0 recast
3 reactions

Kevin pfp
Kevin
@typedarray.eth
The GraphQL client developer experience is cumbersome compared to TypeScript-native tools like tRPC. We have work planned that builds on API functions to improve the client/server experience further. More soon.
1 reply
0 recast
4 reactions