Skip to content

Commit 55a2c22

Browse files
committed
Adjust allOf logic
1 parent cc2f6c7 commit 55a2c22

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

generateQuery.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
const printName = (name) => {
2-
return name === 'allOf' ? '' : ' ' + name
2+
return ' ' + name;
33
}
44

55
const _query = property => {
6+
if (property.name === 'allOf') {
7+
return 'allOf { ' + recursiveQuery(property.type.ofType.fields) + ' }'
8+
}
9+
610
if (!property.type) {
711
return printName(property.name);
812
}

0 commit comments

Comments
 (0)