New Open Source Release: A Prisma, Pothos & GraphQL Server Template
Type-safe, stable, scalable.
This stack offers incredible Developer Experience to build awesome GraphQL backends.
GitHub: nkzw-tech/server-template
New version of the @DrizzleORM plugin is out now: pothos-graphql.dev/docs/plug…
This version updates everything to use the new RQBv2 API from drizzle.
This release has lots of breaking changes, but things should be a lot more stable now!
Now that Pothos v4 has shipped smoothly, its time for @DrizzleORM!
I just published an early preview of the drizzle plugin: pothos-graphql.dev/docs/plug…
You can see a full example of a drizzle based API here: github.com/hayes/pothos/tree…
Try it out, and let me know what you think!
Athena Crisis always runs the latest versions of:
* React
* Relay
* Prisma
* graphql-pothos
* Vite
* TypeScript
* React Router
* framer-motion
* …and many more
Go tell your mom that you helped build a video game! Thanks to everyone for working on these technologies 🙇♂️
Just added a couple new features to the dataloader plugin. `loadableGroup` makes data-loading lists with `where-in` style queries easier, and the new `byPath` option allows loadable fields to use arguments in the load method
🧙🏾 Package feature of the week: prisma-generator-pothos-codegen
This generator by @cauenor provides a fast way to generate a fully customizable CRUD GraphQL API with @pothos_graphql from your Prisma schema.
Try it out and ⭐️ it on GitHub!
github.com/Cauen/prisma-gene…
We just published some improvements to the @prisma plugin that greatly reduces db queries for certain edge cases by adding smarter scheduling of queries, this allows Prisma to more easily batch them together.
If you use aliases in your gql queries, I'd recommend upgrading!
How this works: the actual prisma queries did not change at all, just when/how they are dispatched. Prisma only applies n 1 optimization if all queries are compatible. Pothos now groups compatible queries into batches on separate ticks to preserve the optimization
Just released a few new features for the Prisma plugin!
- builder.prismaInterface for defining interfaces
- onUnusedQuery will let you know if you forget to use the queryArgument in a prismaField
If you are using the Prisma plugin, update the Pothos plugin before upgrading to @prisma 4.13 it introduced some internal changes that broke the Pothos plugin. It's been fixed, but you'll need to grab the latest version of the plugin to make sure everything works correctly!
Thanks to @JoviDeC All Pothos packages will now be published with provenance (github.blog/2023-04-19-intro…)
He has also updated urql and GraphQLSP which I highly recommend checking out!
If you have written or used custom Pothos plugins, reply here or dm me! There are some big internal changes coming in 4.0, and we are trying to figure out what internals people might be using to make the upgrade as easy as possible.
📦GraphQLSP
Announcing an early release of the GraphQLSP package, this is a TypeScript LSP plugin that will help you with the GraphQL documents in your TypeScript files.
Demo: loom.com/share/19d563aea8274…
Repo: github.com/0no-co/GraphQLSP
We are starting to work on Pothos 4.0!
This version will:
* Update some bad defaults
* Make plugin configs more consistent
* Allow field/type refs to be shared/reused/modified for modular schemas and cool new plugins
Add your breaking change ideas here: github.com/hayes/pothos/issu…
Most Pothos users should be able to update with a 1 or 2 line change to restore old defaults (if they haven't overridden them already). There may be a few type changes if you use a lot of complex type helpers for Pothos, but this should be an easy upgrade