BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Getting started with cds.ql in NodeJS for CAP - 101 on how to query data

Walks through cds.ql, the query API @sap/cds 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

Explains
@sap/cdsCAP@sap/cdspackageThe 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.
Since then
@sap/cds has been through 5 major lines since this was published, most recently 8 (2024-07), 9 (2025-06), 10 (2026-07)
Source
reachable

Who is behind it

leoirudayamleoirudayamPersonWrote this
In the atlas: wrote 2
author

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

declared and crawled
Published
declared
Published on
declared
Views
crawled
24,751

More on this16

Group by16 of 16 pieces
Piece, what it offersStill applies
Also explainingthe same things15
CAP: The Road Ahead - Simplicity in an AI Era
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
Hello React & Vue : SAP CAP’s New UI Layer is Here!
SAP Community, Yogananda
nothing recorded
CAP Developers - Call to Action to mitigate and Apply Solution provided in SAP Note 3747787
SAP Community, Yogananda
nothing recorded
CAP, RAP, or Both: Stop Hiding Behind 'It Depends'
SAP Community, Walter Andres Aguero MachadoThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – January 2026
SAP Community, BirgitSThe reasoning
nothing recorded
CAP Heaven? Not Yet — But You Can See It from Here
SAP Community, Mattias JohanssonThe reasoning
nothing recorded
Declarative Programming in CAP: Less Code, More Value
SAP Community, BirgitSThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – November 2025
SAP Community, BirgitSThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – September 2025
SAP Community, BirgitSThe reasoning
nothing recorded
Don't "let it crash", is this the new CAP guideline?
SAP Community, Dinu
nothing recorded
SAP CAPv7 - Node.js Highlights and Experiences
SAP Community, davidtill
nothing recorded
CAP is important because it's not important
SAP Community, DJ AdamsThe reasoning
nothing recorded
SAP Cloud Application Programming Model (CAP) - start here
SAP Community, DJ AdamsThe reasoning
nothing recorded
Everything new: Try out the latest features in CAP
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
AI needs a foundation: A map of the plug-in ecosystem for CAP
SAP TechEd — session catalogue, Mike ZaschkaThe reasoning
nothing recorded
Also byleoirudayam1
Random collection of useful code fragments for CAP Fiori Elements and SAPUI5
SAP Community, leoirudayamThe reasoningRunnable code
Core changed

Details

Graph4 edges
← POINTS HERE
POINTS OUT →
explains@sap/cdsartifact
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • 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