Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Builder content link
e.g. Builder.io: Visual Development Platform
Builder.io: Visual Development Platform
Builder public api key
go to Builder.io: Visual Development Platform and copy your PUBLIC api key
e2f096ba17f74dfd9c140ac050f349a4
What are you trying to accomplish
e.g. I want to integrate builder on a landing page
I need the new SDK to return the same as the old SDK using the $elemMatch
operator. The URL generated between the two SDKs are different but I cannot pinpoint how to adjust it to work.l
Code stack you are integrating Builder with
e.g. NextJS, react, Shopify
NextJS
Reproducible code example
If you are having integration errors, please link to codesandbox or copy and paste your problematic code here. The more detail the better!
Here is the URL generated by the new SDK that does not work:
https://cdn.builder.io/api/v3/content/blog-article?apiKey=e2f096ba17f74dfd9c140ac050f349a4&limit=5&noTraverse=true&includeRefs=true&omit=data.blocks&sort.createdDate=-1&enrich=true&query.data.categories.%24elemMatch.category.id.%24in="[\"d491820ec5da422199336a73f388f354\"]"
The query field is passed in differently so that is probably the cause but I just don’t know what is being expected on the API side in terms of syntax to get it to return properly.