{"repo":"Yelp/dataloader-codegen","free":true,"listed":false,"github":"https://github.com/Yelp/dataloader-codegen","clone":"git clone https://github.com/Yelp/dataloader-codegen.git","description":"🤖 dataloader-codegen is an opinionated JavaScript library for automatically generating DataLoaders over a set of resources (e.g. HTTP endpoints).","language":"JavaScript","stars":115,"topics":["graphql","dataloader","nodejs"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"🤖 dataloader-codegen Now with TypeScript! dataloader-codegen is an opinionated JavaScript library for automagically generating DataLoaders over a set of resources (e.g. HTTP endpoints), with a predictable interface, and maintains type safety. Read more about the motivation behind this library in our recent blog post: https://engineeringblog.yelp.com/2020/04/open-sourcing-dataloader-codegen.html Features : - 🚚 Supports Batched + Non Batched Resources - ✨ Predictable DataLoader Interfaces - 🐛 Error Handling - 🔒 Type Safety (TypeScript) - 🔧 Resource Middleware Install Why? See: https://engineeringblog.yelp.com/2020/04/open-sourcing-dataloader-codegen.html We believe the DataLoader layer should be (mostly) transparent when implementing a GraphQL server over a set of existing resources (e.g. HTTP API Endpoints). When fetching data, GraphQL resolver authors should think in terms of the underlying resources that they're already familiar with, not an invented set of human defined DataLoaders. With dataloader-codegen, we build a 1:1 mapping of resources to DataLoaders : This makes it super easy to find the DataLoaders you want - there will be exactly 1 DataLoader available per resource, with a predictable name and interface. This means reduced risk of making unnecessary HTTP requests. If there were (accidentally!) multiple DataLoaders created for a single endpoint, we potentially lose out on batched requests to that resource. By keeping the mapping of one DataLoader per resource,","default_branch":null,"files":null,"tree":[],"storefront":"/r/Yelp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Yelp/dataloader-codegen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}