Skip to content

How to set async option for individual method calls? #19

@johnnncodes

Description

@johnnncodes

In the docs, it's possible to set async to true or false in the setSchema method:

books: {hasMany: {type: 'book', options: {async: true}}}

But how can I set it to false for individual method calls like find?

For example:

// In some cases I want to use async: false
db.rel.find('books', {async: false});

// and in other cases I want to use async: true
db.rel.find('books', {async: true});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions