Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnnncodes opened this issue Jan 3, 2015 · 6 comments
Open

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

johnnncodes opened this issue Jan 3, 2015 · 6 comments

Comments

@johnnncodes
Copy link

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});
@nolanlawson
Copy link
Member

That isn't currently supported, but I would love to add it. Pull requests welcome! :)

@johnnncodes
Copy link
Author

@nolanlawson Thanks for the response. I'll see what I can do. Happy new year! :)

@nolanlawson
Copy link
Member

Ditto!

akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
@akofman
Copy link
Contributor

akofman commented May 4, 2016

Oups, sorry for the noise ...

akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
akofman added a commit to akofman/relational-pouch that referenced this issue May 4, 2016
@jampy
Copy link

jampy commented Jun 3, 2016

Has this issue been resolved in the meantime?

@akofman
Copy link
Contributor

akofman commented Jun 3, 2016

In progress : #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants