Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep Read Template literal #419

Closed
nocin opened this issue Sep 12, 2023 · 1 comment · Fixed by #422
Closed

Deep Read Template literal #419

nocin opened this issue Sep 12, 2023 · 1 comment · Fixed by #422

Comments

@nocin
Copy link
Contributor

nocin commented Sep 12, 2023

Hi,

Referring to this code line: https://github.com/cap-js/docs/blob/fdb79dc87e37f332a1cf2d3d0a73fd30104001ed/guides/providing-services.md?plain=1#L281C16-L281C16

In the docs the Deep Read query is written with the dot outside the literal: o.`*`

SELECT.from ('Orders', o => o.`*`, o.header (h => h.`*`, h.items('*')))

But this leads to the following syntax error in BAS:
grafik

Can it be that the correct syntax is either this

SELECT.from ('Orders', o => o`.*`, o.header (h => h`.*`, h.items('*')))

or this?

SELECT.from ('Orders', o => o(`*`), o.header (h => h(`*`), h.items('*')))

BR,
Nico

@sjvans
Copy link
Contributor

sjvans commented Sep 13, 2023

thanks for reporting, @nocin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants