Skip to content

Commit

Permalink
Correct init value for ID
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Mar 27, 2024
1 parent 9136fef commit b7f58e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli.odin
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ write_initial_type :: proc(b: ^strings.Builder, schema: gql.Schema, type: gql.Ty
write(b, type.name)
case .Scalar, .Unknown:
switch type.name {
case "String":
case "String", "ID":
write(b, "\"\"")
case "Int", "Float":
write(b, "0")
Expand Down
2 changes: 1 addition & 1 deletion graphql_parser
Submodule graphql_parser updated 0 files
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as t from "node:test"
import * as assert from "node:assert/strict"
import * as gql from "./build/client.js" // Generated
import * as gql from "./build/client.js" // Generated

t.test("query_get_body", () => {
const query_foo = gql.query_get_body_foo({})
Expand Down

0 comments on commit b7f58e4

Please sign in to comment.