sapmentors / cap-community

SAP CAP Community
MIT License
97 stars 26 forks source link

Documentation: Missing single quotes #76

Closed wattnu closed 4 years ago

wattnu commented 4 years ago

Hi Looking at https://cap.cloud.sap/docs/node.js/api#select-forUpdate, I guess, that in both sample code sections, ID must be in single quotes: ID --> 'ID'

Regards

iwonahahn commented 4 years ago

Thank you. We will have a look at it and get to you back here asap. Best regards, Iwona

danjoa commented 4 years ago

No, ID is meant to be a variable obtained from somewhere in these examples → hence:

SELECT.from(Authors,ID)

is a shortcut for the like of:

SELECT.one.from(Authors).where({ID})

or:

SELECT.one.from(Authors).where('ID=',ID)