> 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: querySections() # Method package: wixRestaurantsV2 # Method menu location: wixRestaurantsV2 --> sections --> querySections # Method Link: https://dev.wix.com/docs/velo/apis/wix-restaurants-v2/menus/sections/query-sections.md # Method Description: Creates a query to retrieve a list of sections. The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object. The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function. You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns. `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override: * [`limit(100)`](/sections/sections-query-builder/limit) The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`. |PROPERTY |SUPPORTED FILTERS & SORTING |:---:|:---:| |`_id`|[`eq()`](/sections-query-builder/eq),[`ne()`](/sections-query-builder/ne),[`in()`](/sections-query-builder/in)| |`_createdDate`|[`eq()`](/sections-query-builder/eq),[`ne()`](/sections-query-builder/ne),[`gt()`](/sections-query-builder/gt),[`ge()`](/sections-query-builder/ge),[`lt()`](/sections-query-builder/lt),[`le()`](/sections-query-builder/le)| |`_updatedDate`|[`eq()`](/sections-query-builder/eq),[`ne()`](/sections-query-builder/ne),[`gt()`](/sections-query-builder/gt),[`ge()`](/sections-query-builder/ge),[`lt()`](/sections-query-builder/lt),[`le()`](/sections-query-builder/le)| |`name`|[`eq()`](/sections-query-builder/eq),[`ne()`](/sections-query-builder/ne),[`in()`](/sections-query-builder/in),[`startsWith()`](/sections-query-builder/starts-with)| |`description`|[`eq()`](/sections-query-builder/eq),[`ne()`](/sections-query-builder/ne),[`in()`](/sections-query-builder/in),[`startsWith()`](/sections-query-builder/starts-with)| |`image`|[`exists()`](/sections-query-builder/exists)| |`itemIds`|[`exists()`](/sections-query-builder/exists)| # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## querySections example ```javascript import { sections } from 'wix-restaurants.v2'; async function querySections() { const { items } = sections.querySections().find(); } ``` ## querySections example for exporting from backend code ```javascript import { sections } from 'wix-restaurants.v2'; import { webMethod, Permissions } from 'wix-web-module'; export const querySections = webMethod( Permissions.Anyone, async (options) => { try { const result = await sections.querySections(options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---