Skip to content
View iMohamedSamir's full-sized avatar

Block or report iMohamedSamir

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Solving: Cast to ObjectId failed for... Solving: Cast to ObjectId failed for value "" at path "_id". following freeCodeCamp.org's tutorial: React / GraphQL Course - Build a social media app (MERNG Stack) at 1:18:00
    1
    /*
    2
    * When following freeCodeCamp.org's youtube video tutorial: React / GraphQL Course - Build a social media app (MERNG Stack)
    3
    * I have got stuck @1:18:00 because I got a weired error: Cast to ObjectId failed for value "" at path "_id".
    4
    * It turn out that that ModelName.findById() method only expect vaild mongodb ID, so all I did is
    5
    * to use Types.ObjectId.isValid from mongoose to check if the given string is vaild id or not, if not,
  2. Solving: Uncaught (in promise) Error... Solving: Uncaught (in promise) Error: Cannot assign to read only property 'getPosts'. following freeCodeCamp.org's tutorial: React / GraphQL Course - Build a social media app (MERNG Stack) @4:05:00
    1
    /*
    2
    * When following freeCodeCamp.org's youtube video tutorial: React / GraphQL Course - Build a social media app (MERNG Stack)
    3
    * I have got stuck @4:05:00 because I got an error that says:
    4
    * Uncaught (in promise) Error: Cannot assign to read  only property 'getPosts' of object '#<Object>' 
    5
    * that is happening because in apollo-client 3.6 (which I am using) immutability became mandatory, so, we can't assign new key
  3. MERNG-simple-blog-boilerplate MERNG-simple-blog-boilerplate Public

    JavaScript

  4. reactjs-bp-blog-gql-backend reactjs-bp-blog-gql-backend Public

    JavaScript

  5. Redux-Shopping-Cart-App Redux-Shopping-Cart-App Public

    JavaScript