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
$elemMatch
operator does not work in the new SDK
#3007
Comments
Posting for context, There is an example of getting it working with the new SDK via the I really think this is a large issue with the new SDK as it blocks a large portion of querying. |
Update from the above post, the work around and the example query provided in the above thread do not work. From my POV, the Mentioned in the thread, but I really feel like this is an important functionality to cover especially when we were told we should be using the new SDK. I would take a stab at creating a PR to address this in the new SDK but I would first need to find out if its even a problem with the SDK itself or if its the new content API. So far, I have not been able to get it working properly with the API query itself so that would be the first step if someone could provide a working example. |
@kaceycleveland Thanks for reporting this bug with great detail. We will let you know when we have an update on the root cause and/or have a workaround for you. |
We encountered the same issue with the $elemMatch. Looking forward to a resolution. |
Hey y'all, any updates on this? |
…t for mongodb (#3250) ## Description This PR updates the query option to use `flattenMongoQuery` which is basically flatten but when we get an `$key` we just return the object as is as, so that it properly gets parsed in our API (mongo query). **Jira** https://builder-io.atlassian.net/browse/ENG-5268 **Loom** https://www.loom.com/share/10493e4fd2a24b40937590f7f690bff2 Fixes #3007
A fixed was deployed in 1.0.27 https://github.com/BuilderIO/builder/releases/tag/%40builder.io%2Fsdk-react%401.0.27 |
Describe the bug
A clear and concise description of what the bug is.
We are in the process of porting over to the new SDK (which I saw was marked as 1.0.0, nice!)
Unfortunately, the old functionality of the API could not be replicated with the new API with
$elemMatch
.To Reproduce
Not a concrete reproduction but my test script is as follows:
Expected behavior
A clear and concise description of what you expected to happen.
The return in the repo test script should be the same results but the new API returns no results.
It would be helpful to have a debug option attached to the builder API client to output some additional information such as the query keys being passed to the request or something.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: