Use to match values equal to a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $eq: 200 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $eq: 200 } },
...options,
});{ "data.price": { "$eq": 200 } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$eq":200}}builder.get('your-model', {
query: {
'data.myCustomProperty.$eq': 'sale'
}
})Use to match values greater than a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gt: 600 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gt: 600 } },
...options,
});{ "data.price": { "$gt": 200 } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$gt":200}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$gt': 50
}
})Use to match values greater than or equal to a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $gte: 700 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $gte: 700 } },
...options,
});{ "data.price": { "$gte": 200 } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$gte":200}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$gte': 50
}
})Use to match any of the values you specify in an array.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $in: ['Marketing', 'Engineering'] } },
...options,
});{ "data.price": { "$in": [ 300, 500, 700 ] } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$in":[300,500,700]}}When using the $in operator in a URL query parameter, put the values in an array and separate the values with commas.
You do not need quotes unless the values are a string.
{ "data.department": { "$in": ["Marketing", "Product"] } }https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.department":{"$in":["Marketing","Product"]}}builder.get('your-model', {
query: {
'data.evenMoreCustomAttributes.$in': '[1, 2, 3]'
}
})When querying an array of strings, use JavaScript notation and pass an array of strings to the $in operator.
builder.get('your-model', {
query: {
'data.evenMoreCustomAttributes.$in': '["myString1", "myString2", "myString3"]'
}
})Use to match values less than a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lt: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lt: 455 } },
...options,
});{ "data.price": { "$lt": 500 } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$lt":500}}builder.get('your-model', {
query: {
'data.evenMoreCustomProperty.$lt': 100
}
})Use to match values that are less than or equal to a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: { 'data.price': { $lte: 455 } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.price': { $lte: 455 } },
...options,
});{ "data.price": { "$lte": 500 } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$lte":500}}builder.get('your-model', {
query: {
'data.evenMoreCustomProperty.$lte': 100
}
})Use to match all values not equal to a specified value.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $ne: 'Human Resources' } },
...options,
});{ "data.department": { "$ne": "Marketing" } }https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.department":{"$ne":"Marketing"}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$ne': 'womens'
}
})Given an array of values, $nin will ensure the property matches none of those values.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $nin: ['Product', 'Marketing'] } },
...options,
});{
"data.department": {
"$nin": [ "Marketing", "Engineering" ]
}
}https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.department":{"$nin":["Marketing","Engineering"]}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$nin': '[50, 51]'
}
})Provide one or more expressions to match to the specific field.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$and: [{ $lt: 1000 }, { $gt: 500 }],
},
},
...options,
});{
"$and": [
{ "data.department": { "$eq":"Marketing" } },
{ "data.surname": { "$eq": "Herrera" } }
]
}https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"$and":[{"data.department":{"$eq":"Marketing"}},{"data.surname":{"$eq":"Herrera"}}]}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$and': "[
{ item: { $ne: 'hat' } }, { item: { $exists: true } }
]"
}
})Inverts the effect of a query expression and returns documents that do not match the query expression.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.department': { $not: 'Marketing' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.department': { $not: 'Marketing' } },
...options,
});{ "data.price": { "$not": { "$gt": 400 } } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$not":{"$gt":"400"}}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$not': 'hat'
}
})Use to join query clauses with a logical or and return all documents that match the conditions of either clause.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.surname': {
$or: [{ $eq: 'Moore' }, { $in: ['Moor', 'More'] }],
},
},
...options,
});{
"$or": [
{ "data.department": { "$eq":"Marketing" } },
{ "data.surname": { "$eq": "Herrera" } }
]
}https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"$or":[{"data.department":{"$eq":"Marketing"}},{"data.surname":{"$eq":"Herrera"}}]}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$or': '[
{ quantity: { $gt: 5 } }, { price: 100 }
]'
}
})Use to join query clauses with a logical nor and return all documents that do not match both clauses.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('product', {
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: {
'data.price': {
$nor: [{ $lt: 500 }, { $gt: 1000 }],
},
},
...options,
});{
"$nor": [
{ "data.department": { "$eq":"Marketing" } },
{ "data.surname": { "$eq": "Herrera" } }
]
}https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"$nor":[{"data.department":{"$eq":"Marketing"}},{"data.surname":{"$eq":"Herrera"}}]}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$nor': '[
{ price: 100 }, { closeout: true }
]'
}
})Use to match documents that have the specified field.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.preferredName': { $exists: true } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.preferredName': { $exists: true } },
...options,
});{ "data.preferredName": { "$exists": true } }https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.preferredName":{"$exists":true}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$exists': true
}
})Use to select documents if a field is of the specified type.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.employmentDate': { $type: Date } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.employmentDate': { $type: Date } },
...options,
});{ "data.price": { "$type": "number" } }https://cdn.builder.io/api/v3/content/product?options.product.query={"data.price":{"$type":"number"}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$type': boolean
}
})Use this operator to select documents if a property has an array as a value. $elemMatch will match key-value pairs within the array according to the given conditions.
Within Builder the List type will return an array, the values of which can be operated on by $elemMatch.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.regions': { $elemMatch: { location: 'US West' } } },
...options,
});{
"data.regions": {
"$elemMatch": { "location": "US West" }
}
}https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.regions":{"$elemMatch":{"location":"US%20West"}}}builder.get('your-model', {
query: {
'data.anotherCustomProperty.$elemMatch': {
item: { $ne: 'hat' }
}
}
})Use to select documents where values match a specified regular expression.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: '^Ha.*' } },
...options,
});{ "data.surname": { "$regex": "^H.*" } }https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.surname":{"$regex":"^H.*"}}builder.get('your-model', {
query: {
'data.someNumber.$regex': /pattern/
}
})Use to specify options to use with $regex.
Framework
React Svelte Vue Qwik (Beta) React Native REST API JS
Meta-Framework
None Remix Hydrogen Next.js (Pages Router) Next.js (App Router) Gatsby
Gen 1 (Recommended) Gen 2 import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-svelte';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-vue';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-qwik';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { builder } from '@builder.io/react';
import type { GetContentOptions } from '@builder.io/sdk';
export const getProduct = (options: GetContentOptions) =>
builder.get('contact-record', {
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});import { fetchOneEntry, GetContentOptions } from '@builder.io/sdk-react';
export const getProduct = (options: GetContentOptions) =>
fetchOneEntry({
query: { 'data.surname': { $regex: 'ha.*', $options: 'i' } },
...options,
});{ "data.surname": { "$regex": "^m.*", "$options": "i" } }https://cdn.builder.io/api/v3/content/contact-record?options.contact-record.query={"data.surname":{"$regex":"^m.*","$options":"i"}}builder.get('your-model', {
query: {
'data.someNumber.$regex':
'pattern&query.data.someNumber.$options=gi'
}
})