-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grpc): additional scalar types (#2002)
Co-authored-by: Adam McCullough <[email protected]> Co-authored-by: Tushar Mathur <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mehul Mathur <[email protected]> Co-authored-by: Amit Singh <[email protected]>
- Loading branch information
1 parent
09809bb
commit 345785d
Showing
198 changed files
with
4,941 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/core/generator/snapshots/tailcall__core__generator__from_proto__test__scalar_types.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
source: src/core/generator/from_proto.rs | ||
expression: config | ||
--- | ||
schema @server @upstream { | ||
query: Query | ||
} | ||
|
||
input scalars__ItemInput @tag(id: "scalars.Item") { | ||
boolean: Boolean | ||
bytesType: Bytes | ||
doubleNum: Float | ||
fixedint32: Int | ||
fixedint64: Int64 | ||
floatNum: Float | ||
integer32: Int | ||
integer64: Int64 | ||
sfixedint32: Int | ||
sfixedint64: Int64 | ||
sinteger32: Int | ||
sinteger64: Int64 | ||
str: String | ||
uinteger32: UInt32 | ||
uinteger64: UInt64 | ||
} | ||
|
||
type Query { | ||
scalars__Example__Get(item: scalars__ItemInput!): scalars__Result! @grpc(body: "{{.args.item}}", method: "scalars.Example.Get") | ||
} | ||
|
||
type scalars__Item @tag(id: "scalars.Item") { | ||
boolean: Boolean | ||
bytesType: Bytes | ||
doubleNum: Float | ||
fixedint32: Int | ||
fixedint64: Int64 | ||
floatNum: Float | ||
integer32: Int | ||
integer64: Int64 | ||
sfixedint32: Int | ||
sfixedint64: Int64 | ||
sinteger32: Int | ||
sinteger64: Int64 | ||
str: String | ||
uinteger32: UInt32 | ||
uinteger64: UInt64 | ||
} | ||
|
||
type scalars__Result @tag(id: "scalars.Result") { | ||
result: [scalars__Item] | ||
} |
Oops, something went wrong.
345785d
There was a problem hiding this comment.
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
452001 requests in 30.01s, 2.27GB read
Requests/sec: 15062.82
Transfer/sec: 77.31MB