MERN Stack & GraphQL - #4 Apollo Server with Express

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 33

  • @SowedCastelli
    @SowedCastelli 6 лет назад +17

    Code Realm, I don't know you personally but wherever you are, just know you have a front seat in my prayers. May God grant you the vision and health to see through this series. Great content man. 🙌

  • @mindblow7617
    @mindblow7617 4 года назад +1

    SECURITY & INJECTIONS
    yes please, not many touch this topic at javascript-related projects tutorials but it's SO important!

  • @0ldfashi0ned
    @0ldfashi0ned 5 лет назад +4

    That's an incredible amount of time and effort you're putting into these videos man. Extremely well paced, jam-packed with useful tips and overall way better than almost everything you can find on the "premium" education platforms. If you set up a patreon I'll gladly throw some bucks your way!

  • @hakooplayplay3212
    @hakooplayplay3212 4 года назад

    this channel is pure gold between the tons of dust and ash

  • @magnifico689
    @magnifico689 6 лет назад +9

    Looking forward to finish this app thanks!

  • @rubinskyzlatrovich6731
    @rubinskyzlatrovich6731 6 лет назад +7

    Im so pump for this series!! Telling all my friends man great content! Am looking forward to the notifications system, nobody touches notifications never
    Srsly, this looks so damn good

  • @serhiikolontaievskyi
    @serhiikolontaievskyi 6 лет назад +7

    For those guys, who using Windows and NODE_ENV doesn`t work:
    you should install cross-env package (yarn add -D cross-env) and after that alter the dev and start scripts like this:
    "start": "cross-env NODE_ENV=production node -r esm .",
    "dev": "cross-env NODE_ENV=development nodemon -r esm"
    After this everything should work. You`r welcome!

    • @CodeRealm
      @CodeRealm  6 лет назад

      That works! Or just watch my video on environment variables :-) ruclips.net/video/14zY-u9EBCU/видео.html

    • @AN-zm1rp
      @AN-zm1rp 6 лет назад

      By the way you can change on "dev": "set NODE_ENV=development&&nodemon -r esm". It works for me

    • @treymcnasty2326
      @treymcnasty2326 4 года назад

      or use set before the variables (set NODE_ENV...)

  • @chrismerkand
    @chrismerkand 5 лет назад

    These videos are like gifts from Heaven.

  • @aziaev
    @aziaev 5 лет назад

    this is the best tutorial I have ever seen! Thanks, Alex!

  • @isidroperez4725
    @isidroperez4725 6 лет назад +1

    Love your videos! Best tutorial so far

  • @psyfozim
    @psyfozim 5 лет назад

    Subscribed. Great knowledge of the tools, clear with the vision for the mvp and would-likes on the app, and I absolutely love your clarity and brisk pace. There's a pause button for anybody that needs it and not every tutorial need slow down in order to be for absolute beginners. Sometimes you want something that is both detailed and cuts straight to the point while being incredibly informative and you hit all those buttons. Great work! If you put it anywhere like Udemy, I would purchase on principle.

  • @kennethburla8442
    @kennethburla8442 4 года назад

    this playlist is a GEM

  • @skrite15
    @skrite15 4 года назад

    best course ever you deserve more please continue ! :)

  • @pouyajabbarisani
    @pouyajabbarisani 4 года назад

    Friends! by the way, the import is available in nodejs 12+ and you don't need to set up babel.

  • @vishwanathvt7701
    @vishwanathvt7701 5 лет назад

    I really like the video. Please complete this playlist. That would be great. Thank you.

  • @youneshariz333
    @youneshariz333 Год назад +1

    I m watching you in 2023 Keep going 💪💪💪 dont stop🌹🌹

  • @NepaliIam
    @NepaliIam 5 лет назад

    This is my first comment ever. Thank you for your great tutorials. Keep it coming.

  • @dougiehawes916
    @dougiehawes916 4 года назад

    would be a nice touch to add how to install with npm as well, it was something which put me off during my novice days

  • @wxmahen
    @wxmahen 5 лет назад

    This is an awesome tutorial!

  • @cristhianjonathangomezramo5301
    @cristhianjonathangomezramo5301 5 лет назад

    Thank you, really appreciated

  • @pouyajabbarisani
    @pouyajabbarisani 4 года назад

    I cant understand this part, Why we are passing express to apollo instead of passing apollo to express as a middleware?

    • @CodeRealm
      @CodeRealm  4 года назад

      apollo.applyMiddleware is the preferred way to integrate Apollo with Express www.apollographql.com/docs/apollo-server/integrations/middleware/#applying-middleware

  • @naynyamish270
    @naynyamish270 5 лет назад

    dont know if typo or anything but i get this
    TypeError: Cannot read property 'some' of undefined
    at typeDefs.some.typeDef (C:\projects
    eact\chatapp
    ode_modules\apollo-server-core\dist\utils\isDirectiveDefined.js:11:36)
    at Array.some ()
    at Object.exports.isDirectiveDefined (C:\projects
    eact\chatapp
    ode_modules\apollo-server-core\dist\utils\isDirectiveDefined.js:7:21)
    at new ApolloServerBase (C:\projects
    eact\chatapp
    ode_modules\apollo-server-core\dist\ApolloServer.js:146:39)
    at new ApolloServer (C:\projects
    eact\chatapp
    ode_modules\apollo-server-express\dist\ApolloServer.js:46:9)
    at Object. (C:\projects
    eact\chatapp\src\index.js:12:16)
    at Generator.next ()
    at Object. (C:\projects
    eact\chatapp\index.js:1)

    • @CodeRealm
      @CodeRealm  5 лет назад

      Looks like it's coming from Apollo. I'd double check to make sure you're using the API correctly.

    • @naynyamish270
      @naynyamish270 5 лет назад

      @@CodeRealm could it be because im using a latest version maybe

    • @akamaru1822
      @akamaru1822 4 года назад

      @@naynyamish270 Im having this same issue. It seems like it was working back in version 2.6. I'll be switching back to Apollo-server (not the express middleware), As that was previously working for me.

  • @evans8245
    @evans8245 6 лет назад

    if anyone gets an issue with maxListener's with nodemon, add this to src/index.js
    // Do away with Abominable maxListeners restricting nodemon
    require('events').EventEmitter.prototype._maxListeners = 0;

  • @adrianmikulski6845
    @adrianmikulski6845 6 лет назад

    Nice series, for merging schemas and resolvers you can use something like github.com/okgrow/merge-graphql-schemas

    • @CodeRealm
      @CodeRealm  6 лет назад +1

      Hmm... I couldn't get it to work after migrating to v2 github.com/okgrow/merge-graphql-schemas/issues/149 So I used the built-in way instead. The less code, the better, as far as I'm concerned!