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

Promise in resolve() mapped fields #701

Open
yorrd opened this issue Jan 6, 2019 · 3 comments
Open

Promise in resolve() mapped fields #701

yorrd opened this issue Jan 6, 2019 · 3 comments

Comments

@yorrd
Copy link

yorrd commented Jan 6, 2019

It would be lovely to be able to use async functions in resolve() methods. That way, I could aggregate a database to a fields. Right now, I have to hack the publication because if I use async methods in resolve(), a promise is literally set as the value of the field (which makes sense but doesn't help me)

Thanks!

@lukejagodzinski
Copy link
Member

Are you sure that you're talking about astronomy?

@yorrd
Copy link
Author

yorrd commented Jan 6, 2019

Pretty sure. The resolve() method from here: https://jagi.github.io/meteor-astronomy/#mapping-fields :)

@lukejagodzinski
Copy link
Member

lukejagodzinski commented Jan 7, 2019 via email

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

2 participants