Skip to content

Commit

Permalink
HCK-8882: allow referencing type definitions (#14)
Browse files Browse the repository at this point in the history
* adjust referencing types

* disable external references

* hide disabled field types and disable tick from field list menu option
  • Loading branch information
taras-dubyk authored Dec 10, 2024
1 parent 3851ea3 commit 69421db
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
}
},
"disableDefinitions": {
"internal": true
"internal": true,
"external": true
},
"disableRelationships": false,
"relationships": {
Expand All @@ -81,7 +82,9 @@
},
"definitionSources": {
"multipleSources": true
}
},
"disablePickFromFieldList": true,
"hideDisabledAttributeTypes": true
}
},
"description": "Hackolade plugin for GraphQL",
Expand Down
15 changes: 14 additions & 1 deletion types/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,20 @@
},
"subtypes": {
"snippetChildrenOnly": {
"childValueType": ["String", "ID", "Int", "Float", "Boolean", "List", "input", "enum", "scalar"]
"childValueType": [
"String",
"ID",
"Int",
"Float",
"Boolean",
"List",
"reference"
],
"childReferenceValueType": [
"input",
"enum",
"scalar"
]
}
},
"dependency": {
Expand Down
3 changes: 3 additions & 0 deletions types/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"Float",
"Boolean",
"List",
"reference"
],
"childReferenceValueType": [
"object",
"interface",
"union",
Expand Down
3 changes: 3 additions & 0 deletions types/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"Float",
"Boolean",
"List",
"reference"
],
"childReferenceValueType": [
"object",
"interface",
"union",
Expand Down
3 changes: 3 additions & 0 deletions types/union.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"subtypes": {
"snippetChildrenOnly": {
"childValueType": [
"reference"
],
"childReferenceValueType": [
"object"
]
}
Expand Down

0 comments on commit 69421db

Please sign in to comment.