We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4df39 commit 1bc02aeCopy full SHA for 1bc02ae
1 file changed
readme.md
@@ -73,13 +73,13 @@ const filterThisYear = false
73
// does not work as expected
74
sql`
75
select * from books
76
- ${filterThisYear && sql'where year = 2018'}
+ ${filterThisYear && sql`where year = 2018`}
77
`
78
79
// instead you should do
80
81
82
- ${filterThisYear ? sql'where year = 2018' : undefined}
+ ${filterThisYear ? sql`where year = 2018` : undefined}
83
84
```
85
0 commit comments