You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have a workflow that generates a GraphQL schema and then uses Postman to generate a collection to test our API.
I've come across an issue where certain nested fields don't get included in the generated collection. I have a reproducible schema below:
schema {
query: Query
}
"Query root"
type Query {
testQuery(
parameter: String
): RootType
}
type RootType {
elements: [ArrayElement]
}
type ArrayElement {
a: NestedElement
b: NestedElement
c: NestedElement
}
type NestedElement {
element: Element
}
type Element {
text: String
subElement: SubElement
name: String
}
type SubElement {
code: String
text: String
moreText: String
}
This produces an incorrect query in the collection that looks like this:
query testQuery ($parameter: String) {
testQuery (parameter: $parameter) {
elements {
a {
element {
text
subElement {
code
text
moreText
}
name
}
}
b {
element {
text
name
}
}
c {
element {
text
name
}
}
}
}
}
Where elements b and c are missing the subElement. It is always the first element that has the subElement and the remaining elements are missing it.
The text was updated successfully, but these errors were encountered:
I currently have a workflow that generates a GraphQL schema and then uses Postman to generate a collection to test our API.
I've come across an issue where certain nested fields don't get included in the generated collection. I have a reproducible schema below:
This produces an incorrect query in the collection that looks like this:
Where elements b and c are missing the subElement. It is always the first element that has the subElement and the remaining elements are missing it.
The text was updated successfully, but these errors were encountered: