Skip to content

Commit 9b33717

Browse files
committed
force prevent empty fragments
1 parent 714925b commit 9b33717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GenerateFragments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ ${fragment}`
388388
}
389389

390390
if (constructorName === "GraphQLObjectType") {
391-
if (fragmentType === this.fragmentType.NO_RELATIONS) return null;
391+
// if (fragmentType === this.fragmentType.NO_RELATIONS) return null;
392392
let typeName = null;
393393
// if(field.name !== undefined)
394394
typeName =

0 commit comments

Comments
 (0)