Getting started with cds.ql in NodeJS for CAP - 101 on how to query data
Walks through cds.ql, the query API @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, cap gives a Node.js CAP service's custom handlers, with worked SELECT, UPDATE, DELETE and INSERT examples against a sample schema — filters, AND/OR conditions, column projections, ordering, limiting, grouping and joining two entities through a schema view. An added correction notes that cds.tx(req) is no longer needed to run a query in newer CAP versions, contradicting the post's own original guidance.
Where it sits
Who is behind it
In the atlas: wrote 2author
Before you read it
ApplicabilityNew majors@sap/cds has been through 5 major lines since this was published, most recently 8 (2024-07), 9 (2025-06), 10 (2026-07).
This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.
Properties
About this work
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
- Ref
content:getting-started-with-cds-ql-in-nodejs-for-cap-101-on-how-to-query-data- JSON
- /content/getting-started-with-cds-ql-in-nodejs-for-cap-101-on-how-to-query-data.json
- MCP
- Connecting an agent