Skip to content

Commit

Permalink
Merge pull request #5 from nik-kita/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
nik-kita authored Mar 2, 2025
2 parents a625c68 + ce86553 commit aa94a15
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions gql2http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export const gql2http = new OpenAPIHono();
gql2http.openapi({
method: "post",
path: "/",
summary:
"Parse graphql string into valid json object that should be used for make POST request to your grq-server",
summary: "Parse graphql string into json object for request",
description: `
* One operation at a time (root query/mutation block)
* How pass variables? (if you need)
Expand All @@ -29,8 +28,24 @@ gql2http.openapi({
`,
request: {
body: {
required: true,
content: {
"text/plain": {
example: `
query Example($limit: Int!) {
bla_bla_bla(limit: $limit) {
answer
}
}
"""variables
{
limit: 4,
}
variables"""
`,
schema: z.string(),
},
},
Expand Down

0 comments on commit aa94a15

Please sign in to comment.