---
title: "QueryProtocol"
description: "QueryProtocol"
url: "https://www.contentstack.com/docs/developers/sdks/content-delivery-sdk/swift/reference/queryprotocol"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-21"
---

# QueryProtocol

## QueryProtocol

A base Query protocol which holds the essentials shared by all query types in the SDK which enable querying against content types, entries and assets.

The Stack instance to perform operation.

The parameters dictionary that are converted to \`URLComponents\`.

The Query parameters dictionary that are converted to \`URLComponents\`.

The cachePolicy that is use for fetching entity.

## QueryProtocol | Swift Delivery SDK | Contentstack

QueryProtocol is the base protocol shared by all query types for content types, entries, and assets in the Swift Delivery SDK.