---
title: "Comment by Dhruva Srinivas on \"GraphQL for Beginners: Setting Up GraphQL Server\" | Hashnode"
description: "Hi Victoria, what are your thoughts on something like TypeGraphQL vs. writing your schema like this using graphql-yoga? Great post btw!"
url: "https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61ee2277e247b2151e61b305"
---

[Discussion](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db)

Comment [GraphQL for Beginners: Setting Up GraphQL Server](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db)

[Dhruva Srinivas](https://hashnode.com/@carrotfarmer)

[Jan 24, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61ee2277e247b2151e61b305)

Hi Victoria, what are your thoughts on something like TypeGraphQL vs. writing your schema like this using graphql-yoga? Great post btw!

[Victoria Lo](https://hashnode.com/@victoria)

[Jan 24, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61ee2277e247b2151e61b305#reply-61ee6124c99aed184e726637)

Hi [Dhruva Srinivas](https://hashnode.com/@carrotfarmer), thanks for the question. graphql-yoga has been around since the beginning and may soon be replaced with the new Nexus framework. Also, it is a schema-first approach.

I think the future may lie with newer alternatives such as typegraphql 😊 and a code-first approach. Here's an article by [Prism](https://www.prisma.io/blog/the-problems-of-schema-first-graphql-development-x1mn4cb0tyl3) regarding the topic.

There is some learning and unlearning to do if you're already used to writing schema-first. So I'll probably write an updated article soon haha!

[Dhruva Srinivas](https://hashnode.com/@carrotfarmer)

[Jan 24, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61ee2277e247b2151e61b305#reply-61ee851ce247b2151e61c0bd)

[Victoria Lo](https://hashnode.com/@victoria) Thanks for the response, I've never heard of Nexus, I'll give that a look!
