Skip to content

Commit

Permalink
Correct handling of optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Nov 4, 2024
1 parent 4483f10 commit 544ea69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/subgraphSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export const generateTypes = async (url: string, filename: string): Promise<void
const schema = generateSchema(url);
const codegenConfig = {
documents: [],
config: {},
config: {
maybeValue: "T | null | undefined",
},
filename: "",
schema: parse(printSchema(schema)),
plugins: [
Expand Down

0 comments on commit 544ea69

Please sign in to comment.