Skip to content

Commit

Permalink
add test to reproduce problem
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-vogel committed Jan 3, 2024
1 parent 5aab033 commit f7e5642
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/typescript/apis/project/cds-ql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ sel.from(Foos)
sel.columns("x") // x was suggested by code completion
sel.SELECT.columns?.filter(e => !e) // check if this is array

// ensure ql returns a proper CQN
const s = SELECT.from(Foos).columns('ID').where('ID =', 42)
s.SELECT.from.ref
s.SELECT.columns?.[0].ref
s.SELECT.where?.[0].ref
s.SELECT.where?.[2].val

INSERT.into(Foos).columns("x") // x was suggested by code completion
let ins: INSERT<Foo>
ins = INSERT.into(Foos, {})
Expand Down

0 comments on commit f7e5642

Please sign in to comment.