-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
markus.scroll
71 lines (59 loc) · 1.16 KB
/
markus.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import ../code/conceptPage.scroll
id markus
name Markus
appeared 2020
tags queryLanguage
writtenIn rust json toml markdown javascript python c cpp bourne-shell yaml
repoStats
firstCommit 2019
commits 374
committers 1
files 46
newestCommit 2020
country United States
originCommunity https://github.com/Markus-Studio
example
type User: user {
name: string;
}
type Task {
owner: User;
title: string;
done: bool;
}
query myTasks() {
is(Task),
# %user is the current authenticated user.
eq(.owner, %user)
}
action newTask($title: string) {
create Task {
user: %user,
title: $title,
done: false
};
}
action toggleStatus($task: Task) {
validate eq($task.owner, %user);
update $task {
.done: not(.done)
};
}
action delete($task: Task) {
validate eq($task.owner, %user);
delete $task;
}
action edit($task: Task, $new_title: string) {
validate eq($task.owner, %user);
update $task {
.title: $new_title
};
}
githubRepo https://github.com/Markus-Studio/Markus
stars 2
forks 0
subscribers 2
created 2020
updated 2021
description A declarative (database) query language!
issues 2