Skip to content

Commit

Permalink
add calls to trigger functions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Oct 9, 2023
1 parent 975a74f commit 3b38221
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/expected/function_calls.out
Original file line number Diff line number Diff line change
Expand Up @@ -2161,4 +2161,38 @@ begin;
}
(1 row)

select jsonb_pretty(graphql.resolve($$
query {
returnsTrigger
}
$$));
jsonb_pretty
-------------------------------------------------------------------------
{ +
"data": null, +
"errors": [ +
{ +
"message": "Unknown field \"returnsTrigger\" on type Query"+
} +
] +
}
(1 row)

select jsonb_pretty(graphql.resolve($$
query {
returnsEventTrigger
}
$$));
jsonb_pretty
------------------------------------------------------------------------------
{ +
"data": null, +
"errors": [ +
{ +
"message": "Unknown field \"returnsEventTrigger\" on type Query"+
} +
] +
}
(1 row)

rollback;
12 changes: 12 additions & 0 deletions test/sql/function_calls.sql
Original file line number Diff line number Diff line change
Expand Up @@ -770,4 +770,16 @@ begin;
concatText(a: "hello ")
}
$$));

select jsonb_pretty(graphql.resolve($$
query {
returnsTrigger
}
$$));

select jsonb_pretty(graphql.resolve($$
query {
returnsEventTrigger
}
$$));
rollback;

0 comments on commit 3b38221

Please sign in to comment.