> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: queryItems() # Method package: wixRestaurantsV2 # Method menu location: wixRestaurantsV2 --> items --> queryItems # Method Link: https://dev.wix.com/docs/velo/apis/wix-restaurants-v2/menus/items/query-items.md # Method Description: Creates a query to retrieve a list of items. The `queryItems()` function builds a query to retrieve a list of items and returns a `ItemsQueryBuilder` object. The returned object contains the query definition, which is used to run the query using the [`find()`](/items/items-query-builder/find) function. You can refine the query by chaining `ItemsQueryBuilder` functions onto the query. `ItemsQueryBuilder` functions enable you to filter, sort, and control the results that `queryItems()` returns. `queryItems()` runs with the following `ItemsQueryBuilder` defaults, which you can override: * [`limit(500)`](/items/items-query-builder/limit) The following `ItemsQueryBuilder` functions are supported for `queryItems()`. For a full description of the item object, see the object returned for the [`items`](/items/items-query-result/items) property in `ItemsQueryResult`. |PROPERTY |SUPPORTED FILTERS & SORTING |:---:|:---:| |`priceVariants.variants`|[`exists()`](/items-query-builder/exists)| |`priceVariants.variants.price`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne)| |`_id`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`in()`](/items-query-builder/in)| |`_createdDate`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`gt()`](/items-query-builder/gt),[`le()`](/items-query-builder/le),[`lt()`](/items-query-builder/lt)| |`_updatedDate`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`gt()`](/items-query-builder/gt),[`le()`](/items-query-builder/le),[`lt()`](/items-query-builder/lt)| |`name`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`in()`](/items-query-builder/in),[`startsWith()`](/items-query-builder/starts-with)| |`description`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`in()`](/items-query-builder/in),[`startsWith()`](/items-query-builder/starts-with)| |`image`|[`exists()`](/items-query-builder/exists)| |`image.id`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne)| |`labels`|[`exists()`](/items-query-builder/exists)| |`orderSettings`|[`exists()`](/items-query-builder/exists)| |`orderSettings.inStock`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`in()`](/items-query-builder/in)| |`orderSettings.acceptSpecialRequests`|[`eq()`](/items-query-builder/eq),[`ne()`](/items-query-builder/ne),[`in()`](/items-query-builder/in)| # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## queryItems example ```javascript import { items } from 'wix-restaurants.v2'; async function queryItems() { const { items } = items.queryItems().find(); } ``` ## queryItems example for exporting from backend code ```javascript import { items } from 'wix-restaurants.v2'; import { webMethod, Permissions } from 'wix-web-module'; export const queryItems = webMethod( Permissions.Anyone, async (options) => { try { const result = await items.queryItems(options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---