Skip to content

TypeError: Cannot read property '_id' of undefined When I try to add a product #6

@HackIvan

Description

@HackIvan

55 | }
56 |
57 | const variables = {

58 | writer: props.user.userData._id,
| ^ 59 | title: TitleValue,
60 | description: DescriptionValue,
61 | price: PriceValue,

I've created a mongo db account and I've created the dev.js file adding the credentials to in for accessing the database

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions