> 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: not(query: PublicPlansQueryBuilder) # Method package: wixPricingPlansBackend # Method menu location: wixPricingPlansBackend --> PublicPlansQueryBuilder --> not # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/public-plans-query-builder/not.md # Method Description: Adds a `not` condition to the query. The `not()` function adds a `not` condition to a `PublicPlansQueryBuilder`. A query with a `not` returns all the items that match the query as defined up to the `not` function, but don't match the query passed to the `not` function. If the query only contains a `not()` function, it returns all the items that don't match the query defined by the `not` method. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Add a `not` filter to a query ```javascript const newQuery = query1.not(query2); ``` ## Create a query, add a `not` filter, and run it ```javascript import wixPricingPlansBackend from 'wix-pricing-plans-backend'; // ... wixPricingPlansBackend.queryPublicPlans() .not(wixPricingPlansBackend.queryPublicPlans().startsWith("slug", "silver")) .find() .then((publicPlans) => { if (publicPlans.items.length > 0) { const items = publicPlans.items; const firstItem = items[0]; const totalCount = publicPlans.totalCount; const pageSize = publicPlans.pageSize; const currentPage = publicPlans.currentPage; const totalPages = publicPlans.totalPages; const hasNext = publicPlans.hasNext(); const hasPrev = publicPlans.hasPrev(); const length = publicPlans.length; const query = publicPlans.query; } else { // handle case where no matching items found } }) .catch((error) => { const queryError = error; }); ``` ---