Giter Site home page Giter Site logo

Comments (6)

tgriesser avatar tgriesser commented on June 12, 2024 16

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.

villesau avatar villesau commented on June 12, 2024 7

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.

ccfiel avatar ccfiel commented on June 12, 2024 1

I hope that this package is still being maintained because we heavily rely on it.

from nexus.

haysclark avatar haysclark commented on June 12, 2024

@see #894

from nexus.

tgriesser avatar tgriesser commented on June 12, 2024

cc @hayes

from nexus.

MarkAPhillips avatar MarkAPhillips commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.