Skip to content

Commit

Permalink
feat: add initial set of operators in expr (#948)
Browse files Browse the repository at this point in the history
Co-authored-by: Tushar Mathur <tusharmath@gmail.com>
  • Loading branch information
shashitnak and tusharmath authored Jan 18, 2024
1 parent 991313c commit 7a82e6b
Show file tree
Hide file tree
Showing 47 changed files with 2,504 additions and 501 deletions.
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
too-many-arguments-threshold = 3
too-many-arguments-threshold = 4
10 changes: 10 additions & 0 deletions examples/.tailcallrc.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,16 @@ directive @expr(
body: ExprBody!
) on FIELD_DEFINITION

"""
Allows executing arbitrary javascript code
"""
directive @js(
"""
A javascript expression that returns a JSON value
"""
script: String!
) on FIELD_DEFINITION

"""
Kinds of nodes that the expression AST can use
"""
Expand Down
Loading

1 comment on commit 7a82e6b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.36ms 2.69ms 35.34ms 68.99%
Req/Sec 3.96k 196.71 4.83k 93.83%

473156 requests in 30.01s, 2.37GB read

Requests/sec: 15764.02

Transfer/sec: 80.91MB

Please sign in to comment.