Comments (6)
The ecosystem around this project keeps evolving quite rapidly, but it seems that nexus cannot keep up.
Our team uses Nexus on a daily basis and it works fine. I'm guessing the next major release that I'll cut will be around the GraphQL 17 release. If you're using Prisma, I don't know how well it works because I've never used the Prisma plugin (we use Knex), same goes for federation.
I have started playing with https://pothos-graphql.dev/ and have been very very impressed with the approach it takes to schema construction, type safety, modularity, and plugins. The project is actually inspired by Nexus, aiming to be an abstraction layer without the need for additional code generation. I've been digging into the APIs and figuring out a way that we might be able to layer the two together, to provide an incremental path to move to Pothos' API.
If you're already using Nexus for a project, or you're pretty familiar with Nexus and happy with what it does, feel free to keep using it until there's a more official recommendation on what a Nexus+Pothos integration might look like. Eventually I'd like to provide a fully baked migration approach to bridge Nexus & Pothos incrementally, because I feel like we're after the same things, and they've really nailed the plugin experience, it almost feels like a waste to have two isolated projects. Also, based on how Nexus works internally, it shouldn't be too difficult to bridge the two I don't think.
I'm going to have much more time in 2023 to get things up to date and be more responsive here, will update with additional findings.
from nexus.
No need to migrate gradually. I built a codemod for doing most of the heavy lifting for you: https://github.com/villesau/nexus-to-pothos-codemod
I used it to migrate our own codebase successfully. There might be different conventions across the codebases so the experience might vary - but I'm more than open for pull requests fixing the issues you might encounter!
from nexus.
I hope that this package is still being maintained because we heavily rely on it.
from nexus.
from nexus.
cc @hayes
from nexus.
@tgriesser is there any update of this is 2024 - is the recommendation to migrate to Pothos ? - we are still using Nexus but am concerned the last release 1.3.0 was over a year ago - I look forward to you comments
from nexus.
Related Issues (20)
- 'isTypeOf' does not exist in type 'NexusObjectTypeConfig HOT 1
- How to avoid TypeScript errors when using ESM? HOT 7
- unionType issue/question HOT 1
- using nexus with cloudflare workers HOT 1
- Error when generating GraphQL schema from schema.prisma when referencing alternative/unique key. HOT 1
- Exclude `ok: Boolean!` from generate HOT 1
- Support directives for Spectaql document generation
- Guide for generating nexus in ESM HOT 1
- ESM support HOT 2
- Trouble running examples using npm. What is test:types?
- wrong npm version badge on npm page
- Experimental CRUD type error
- totalCount function "args" are not typed based on "additionalArgs" in the same way as "nodes" function
- Examples not working
- #441 breaks the use with raw GraphQLScalarType from library such as graphql-upload-minimal
- isTypeOf malfunctioning for Interfaces
- Critical dependency: the request of a dependency is an expression HOT 1
- Graphql recent Support
- How can I save DateTime objects using nexus?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexus.