File tree Expand file tree Collapse file tree 3 files changed +45
-3
lines changed Expand file tree Collapse file tree 3 files changed +45
-3
lines changed Original file line number Diff line number Diff line change 11
11
(
12
12
regexp_match(
13
13
comment_,
14
- ' @graphql\( (.+? )\) '
14
+ ' @graphql\( (.+)\) '
15
15
)
16
16
)[1 ]::jsonb,
17
17
jsonb_build_object()
Original file line number Diff line number Diff line change 1
1
select
2
2
graphql.comment_directive(
3
3
comment_ := '@graphql({"name": "myField"})'
4
- )
4
+ );
5
5
comment_directive
6
6
---------------------
7
7
{"name": "myField"}
8
8
(1 row)
9
9
10
+ select
11
+ graphql.comment_directive(
12
+ comment_ := '@graphql({"name": "myField with (parentheses)"})'
13
+ );
14
+ comment_directive
15
+ ----------------------------------------
16
+ {"name": "myField with (parentheses)"}
17
+ (1 row)
18
+
19
+ select
20
+ graphql.comment_directive(
21
+ comment_ := '@graphql({"name": "myField with a (starting parenthesis"})'
22
+ );
23
+ comment_directive
24
+ --------------------------------------------------
25
+ {"name": "myField with a (starting parenthesis"}
26
+ (1 row)
27
+
28
+ select
29
+ graphql.comment_directive(
30
+ comment_ := '@graphql({"name": "myField with an ending parenthesis)"})'
31
+ );
32
+ comment_directive
33
+ -------------------------------------------------
34
+ {"name": "myField with an ending parenthesis)"}
35
+ (1 row)
36
+
Original file line number Diff line number Diff line change 1
1
select
2
2
graphql .comment_directive (
3
3
comment_ := ' @graphql({"name": "myField"})'
4
- )
4
+ );
5
+
6
+ select
7
+ graphql .comment_directive (
8
+ comment_ := ' @graphql({"name": "myField with (parentheses)"})'
9
+ );
10
+
11
+ select
12
+ graphql .comment_directive (
13
+ comment_ := ' @graphql({"name": "myField with a (starting parenthesis"})'
14
+ );
15
+
16
+ select
17
+ graphql .comment_directive (
18
+ comment_ := ' @graphql({"name": "myField with an ending parenthesis)"})'
19
+ );
You can’t perform that action at this time.
0 commit comments