---
title: "Discussion on \"GraphQL for Beginners: Setting Up GraphQL Server\" | Hashnode"
description: "Discussion on \"GraphQL for Beginners: Setting Up GraphQL Server\". Beginner-friendly series on GraphQL 🔰 Let's start building our app! Part 3: Setting Up GraphQL server"
url: "https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [GraphQL for Beginners: Setting Up GraphQL Server](https://blog.lo-victoria.com/graphql-for-beginners-setting-up-graphql-server?utm_source=hashnode&utm_medium=feed)

Beginner-friendly series on GraphQL 🔰 Let's start building our app! Part 3: Setting Up GraphQL server

Aug 6, 2021 · 9 min read · blog.lo-victoria.com  
Updated Sep 2, 2022  
Read the article

-   [#graphql](https://hashnode.com/tag/graphql)
-   [#apis](https://hashnode.com/tag/apis)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

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

@victoria · Singapore

  
[View profile](https://hashnode.com/@victoria)

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses 6

Markdown supported · ⌘↵ to post

[K-Von Madison](https://hashnode.com/@Kdash201)

[Mar 31, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/62451dd3b4e1ecee678b629d)

Hi Victoria. First of all thanks, I love the content. I understand we are implementing this code all in the index js file. However (pardon my ignorance I'm still a newbie) I'm getting the below error message. I'm having a hard time debugging. Any assistance is greatly appreciated.

TypeError: PubSub is not a constructor at Object.<anonymous> (C:\\Users\\K-Von\\Desktop\\projects\\github-help\\project\\server\\index.js:4:16)

[K-Von Madison](https://hashnode.com/@Kdash201)

[Apr 2, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/62451dd3b4e1ecee678b629d#reply-6248b82516cdedfe9f7cd99a)

Hi [kfn8dkodemonkey](https://hashnode.com/@kaffeinatedkodemonke), unfortunately I wasn't able to fix it even after cloning the repo

[kfn8dkodemonkey](https://hashnode.com/@kaffeinatedkodemonke)

[Apr 4, 2022](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/62451dd3b4e1ecee678b629d#reply-624b6f6d4b4dde0dc0beb585)

Hmmm okay [K-Von Madison](https://hashnode.com/@Kdash201). I am looking into something and if it works I will let you know.

[stanley Melara](https://hashnode.com/@stanleyw35)

[Feb 21, 2023](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/62451dd3b4e1ecee678b629d#reply-63f45ae83c8949b64ddcd31f)

[K-Von Madison](https://hashnode.com/@Kdash201) I resolved the issue installing spefific version package "graphql-yoga": "^1.18.3" the same version of the repo github.com/victoria-lo/devthoughts

[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!

[Anderson Osayerie](https://hashnode.com/@andemosa)

[Aug 11, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/6113b5d95f85bc2b3d11fae7)

Very informative and beginner friendly series. I am gradually getting a grasp of how GraphQL works, thanks to this series. I am looking forward to the next article

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

[Aug 11, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/6113b5d95f85bc2b3d11fae7#reply-6113c4c91190301924979cb0)

So glad it's helping you [Anderson Osayerie](https://hashnode.com/@andemosa)! Feel free to ask questions if there's a part you don't quite understand. Can be quite tricky to learn at first! Stay tuned for the next part, my friend :)

[Usman Sabuwala](https://hashnode.com/@usmanwrites)

[Aug 10, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61124444fab8db0c4fc31887)

Amazing! The subscriptions part is a bit hard but re-reading again and again makes it somewhat understandable.

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

[Aug 10, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/61124444fab8db0c4fc31887#reply-611247c9fab8db0c4fc318ff)

Indeed Usman, I was thinking how to best explain Subscriptions. I'm glad it's quite understandable for you. I'll see if I can rewrite it to be clearer when I have the chance. Thanks for the awesome feedback! :)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/610d54d2528eff11aea88250)

Another excellent article from the series...thank you!

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

[Aug 10, 2021](https://hashnode.com/posts/graphql-for-beginners-setting-up-graphql-server/610d52cd528eff11aea881db/comment/610d54d2528eff11aea88250#reply-61124789fab8db0c4fc318e4)

Thanks Tapas! I'm glad u enjoyed it :)
