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

Expose operators #131

Closed
arj03 opened this issue Jan 20, 2021 · 1 comment · Fixed by #132
Closed

Expose operators #131

arj03 opened this issue Jan 20, 2021 · 1 comment · Fixed by #132

Comments

@arj03
Copy link
Member

arj03 commented Jan 20, 2021

Should we expose operators in the api so that we can do:

const { and, type, live, toPullStream } = ssb.db.operators

instead of:

const { and, type, live, toPullStream } = require('ssb-db2/operators')

This means that we can use the operators without requiring ssb-db2 if it was loaded as a plugin to secret-stack.

@staltz
Copy link
Member

staltz commented Jan 20, 2021

works for me :)

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

Successfully merging a pull request may close this issue.

2 participants