Our great sponsors
-
typegraphql-prisma
Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
apollo-server
🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The complete example used in this tutorial is available on GitHub.
Learn more about other advanced operations you can apply to your GraphQL resolvers, such as custom resolvers, authorization, middleware and additional decorators to your Prisma schema and models here.
Explore the prisma-examples to see how Prisma can fit in your stack. If you feel an example is missing, create an issue. 😊
TypeGraphQL is a framework that follows a code-first and object-oriented approach towards building GraphQL APIs. It leverages TypeScript by using classes and decorators.
In this article, you'll explore how you can prototype an e-commerce GraphQL CRUD API using TypeGraphQL, Apollo Server and Prisma for database access. SQLite will be the database of choice in this tutorial because of its ease of setup. Feel free to use your choice database - Prisma currently supports PostgreSQL, MySQL and SQL Server preview.
Related posts
- Implementing vector search with OpenAI, Next.js, and Supabase
- Web development feels daunting – What am I doing wrong?
- Next-auth - use Accounts table just for access_token to call OAuth APIs without registering new Users?
- What libraries have you used that have the best documentation?
- What stack of technologies have you guys been using for web dev?