Giter VIP home page Giter VIP logo

graphql-chat's People

Contributors

alex996 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphql-chat's Issues

Sugestion - Security Libraries and links

Nice series. I hope to see more soon.

I do not know how you imagine the future of the application will be, but in spite of that I would like to share here a little list of some libraries that i have found to be very useful for node security. I will assume that you will use sessions to authenticate and possibly tokens to reset passwords.:

As for JWT, i usually like to share this video, that i think very illustrative (maybe too much...): JSON Web Tokens Suck - Randall Degges (DevNet Create 2018) - https://www.youtube.com/watch?v=JdGOb7AxUo0. There are some use cases for JWT at the end :)

Being dependent on too many libraries is not the most reliable thing, but they, nonetheless, can give some direction and awareness to problems and solutions.

Here is an interesting link: OWASP Top 10 Most Critical Web Application Security Risks - 2017- https://github.com/OWASP/Top10/blob/master/2017/OWASP%20Top%2010-2017%20(en).pdf

Question to the Joi validation

Hi man,

talking about this line of code:

await Joi.validate(args, SignUp, { abortEarly: false })

What if the validation fails? How does the resolver function know that it should not run the next line return User.create(args) ?

According to the joi docs, the validate function returns a promise. What happens with this promise exactly?

Error with User resolver validate

Hi,

resolvers\chat.js

The validate method expect two parameters:

await Joi.validate(args, startChat(userIds), { abortEarly: false })

With correction
await Joi.validate(args, startChat(args), { abortEarly: false })

More Authentication Types?

Hey, thank you so much for your courses I honestly think this might be among the best tutorial series I've ever seen paid or free. I'm not done with the course yet just finished the authentication lessons so this may already be covered.

Something that I'm really struggling with in the apps I'm building is authentication with SSO. I would love to see how you would approach account creation/login using various SSO providers like google/facebook/twitter/github. Google would benefit me the most personally.

Once again, thank you so much for your content!

Redis warning for password

Hi Alex,

Great series so far I am a little behind I seem to be getting this warning in my terminal

node_redis: Warning: Redis server does not require a password, but a password was supplied.

I have checked around github and saw there was a closed issue for it so I don't know how it cropped up on my terminal. Anyone else getting this ? I am using it directly from my env and injecting my env variables in.

issue

Still active?

Hey man, you still working on the branch?

You were doing quite fine ๐Ÿ‘Œ

Update repo and next.js suggestion

Hi Alex,

Thank you for creating the MERN stack video series. Can you update this repo with the latest code from the videos? Latest commit is from around the directives video I believe.

Also have you decided on what you will be using for creating the frontend of the site? I wanted to suggest next.js since it's React but also server-side rendered. It can also be integrated with the Express and Apollo setup you've already implemented.

Mutation startChat add logged user twice

resolvers/chat.js

The logged user is added twice

if (idsFound !== userIds.length) {
        throw new UserInputError('One or more User IDs are invalid.')
      }

      const chat = await Chat.create({ title, users: userIds })

Change to:

if (idsFound !== userIds.length) {
        throw new UserInputError('One or more User IDs are invalid.')
      }

      if (!userIds.filter(u => u.id === userId)) {
        userIds.push(userId)
      }

      const chat = await Chat.create({ title, users: userIds })

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.