Skip to content

📚 Documentation: Adding sleep /wait function to quick start guide for node-sdk for better first experience #1785

@sahilsekr42

Description

@sahilsekr42

💭 Description

In the quick start guide for node.js-sdk there is a function runAllTasks

async function runAllTasks() {
    await prepareDatabase();
    await seedDatabase();
    await getTodos();
}
runAllTasks();

This is just for devs to get started. Now, I observed that running seedDatabase() immediately after preparing the db throws error related to attribute recognition . As far as I can tell the database in background is taking some time to be prepared . Waiting for a couple seconds between both functions solves this.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions