tokei/tests/data/edgeql.edgeql
Embers-of-the-Fire 21be04cba1
Add Nuget Config, Bazel and EdgeQL Support, Fix Output Formatter (#999)
* add nuget configuration support

* fix test file

* add bazel language

* fix output format

* add languages to readme

* fix serialize

* add edgeql

* edit readme

* add test file

* fix edgedb
2023-05-24 16:38:26 +02:00

28 lines
520 B
Text

# 28 lines 21 code 3 comments 4 blanks
select User {
name,
friends: {
name
},
has_i := .friends.name ilike '%i%',
has_o := .friends.name ilike '%o%',
} filter .has_i or .has_o;
select <User>{} ?? User {name};
# update the user with the name 'Alice Smith'
with module example
update User
filter .name = 'Alice Smith'
set {
name := 'Alice J. Smith'
};
# update all users whose name is 'Bob'
with module example
update User
filter .name like 'Bob%'
set {
name := User.name ++ '*'
};