{"ref":"content:getting-started-with-cds-ql-in-nodejs-for-cap-101-on-how-to-query-data","page":"/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","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"getting-started-with-cds-ql-in-nodejs-for-cap-101-on-how-to-query-data","title":"Getting started with cds.ql in NodeJS for CAP - 101 on how to query data","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/getting-started-with-cds-ql-in-nodejs-for-cap-101-on-how-to-query-data/ba-p/13528650","content_type":"blog","published_on":"source:sap-community","explains":["artifact:sap-cds"],"summary":"Walks through cds.ql, the query API [@sap/cds](artifact: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.","short":"Introduction to cds.ql queries in Node.js CAP handlers","published":"2022-06-21","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-09-19"},"drafted_with_ai":true,"authors":["actor:leoirudayam"]},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"poor","evidence":"published 52 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"poor","evidence":"@sap/cds 6.0, 7.0, 8.0, 9.0, 10.0 since publication"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":24751,"unit":"views"},{"value":17,"unit":"comments"},{"value":28,"unit":"likes"}]},"signals":{"views":24751,"likes":28,"comments":17,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[{"ref":"actor:leoirudayam","name":"leoirudayam","json":"/actors/leoirudayam.json"}]}}