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

max ⚡ pfp
max ⚡
@maxp.eth
👀
1 reply
0 recast
0 reaction

max ⚡ pfp
max ⚡
@maxp.eth
does `execute` function for writes to the db?
1 reply
0 recast
1 reaction

Kevin pfp
Kevin
@typedarray.eth
No, the API function database connection is read-only. You can only write to the database within indexing function. This keeps the database "stateless" (it can be rebuilt on demand). We're working on something to address this, but will take time. Difficult design problem.
0 reply
0 recast
1 reaction