-
Notifications
You must be signed in to change notification settings - Fork 39
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
Adapter for mongodb #58
Comments
Cool, looks good 🎉 |
That's awesome, can't wait to see this finished! |
Have almost done the implementation ( only two test's are failing, looking at it ). Meanwhile i thought there is mismatch in the specification and test for adapters for filter option. Filter options before & after will be part of filter key in the options object. But in the adapter's test suite before and after key are passed in options object skipping the filter key. Note: Currently i have managed to run the test by changing the implementation. |
@relekang any comments? I'm totally not in the context here, haven't looked at that API in a while. |
Looks like the docs and implementation is the same. The implementation sends this as options. {
pathname: pathname,
before: parseInt(query.before, 10),
after: parseInt(query.after, 10),
} |
Hi @relekang As per the spec ( https://github.com/micro-analytics/micro-analytics-cli/blob/master/writing-adapters.md#options) filter is passed like this
but in the adapters-test suite the call is like
I expected it to be
Don't know if i am missing something here. |
Yeah, that means that the spec differs from the implementation of micro-analytics-cli. If you follow the spec it will not work as expected, but if you follow the tests it will. Not sure what we should do from here. If we should change the spec of change the implementation? |
I think let's change the Spec, since it's easier to do? I don't think there's big of a difference between those two APIs... |
The spec is updated now. |
Hi
I am half way in writing a adapter for mongodb. Implementation is based on the given spec. Yet to published in npm.
Repo: https://github.com/esakkiraj/adapter-mongodb
The text was updated successfully, but these errors were encountered: