Skip to main content

Query Any Database.
One Syntax. Zero Risk.

From SQL Server to MongoDB to Cosmos to In-Memory lists — same query, every time. Open source. Secure by design. MIT licensed.

Supported Databases

Why ServiceQuery?

Secure

Built on LINQ expression trees with individually mapped functions. SQL injection is architecturally impossible.

Simple

No complex schemas. No special protocols. Just JSON over REST. Build queries in JavaScript, execute on any IQueryable. Minutes to add, not days.

Universal

One query syntax for SQL Server, PostgreSQL, MongoDB, Cosmos DB, Azure Tables, SQLite, and more. Stop learning new query languages.

How It Works

Client Side (JavaScript)

var request = new ServiceQueryRequestBuilder()
    .IsEqual("Status", "Active")
    .IsGreaterThan("Amount", "100")
    .SortDesc("CreateDate")
    .Paging(1, 25)
    .Build();

fetch('/api/orders/query', {
    method: 'POST',
    body: JSON.stringify(request)
});

Server Side (C#)

[HttpPost("query")]
public ServiceQueryResponse<OrderDto> Query(
    ServiceQueryRequest request)
{
    var queryable = _db.Orders.AsQueryable();
    return request.Execute(queryable);
}

Same query works regardless of underlying database — SQL Server, MongoDB, Cosmos, or in-memory.

AI-Powered Natural Language Queries

ServiceQuery now supports natural language processing. Query your data with plain English sentences — no syntax required. Watch the demo to see AI integration in action.

Get Started

Part of

ServiceBricks

ServiceQuery works standalone with zero dependencies. It also powers all querying for ServiceBricks microservices. Generate complete solutions with our open-source microservices foundation — using AI and natural language.

Open Source & Free Forever

MIT licensed. 94% code coverage.
Use it commercially. View on GitHub. Join the community.