Skip to content

Commit

Permalink
fix: Schema generation again
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-smartive committed Aug 25, 2023
1 parent 68e2c1d commit 4e8c6cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schema/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export const generateDefinitions = (rawModels: RawModels): DefinitionNode[] => {
...model.fields.filter(isQueriableField).map((field) => ({
...field,
type:
field.type === 'relation' || field.type === 'enum' || field.type === 'raw' ? field.typeName : field.type,
field.type === 'relation' || field.type === 'enum' || field.type === 'raw' || field.type === 'json'
? field.typeName
: field.type,
args: [...(field.args || [])],
directives: field.directives,
})),
Expand Down

0 comments on commit 4e8c6cd

Please sign in to comment.