Why populateExchange doesn't work with interface/union? #909
-
Hi all,
My schema example: interface Product {
id: ID!
name: String!
sku: String!
price: UnsignedInt!
}
type SimpleProduct implements Product {
id: ID!
name: String!
sku: String!
price: UnsignedInt!
}
type ComplexProduct implements Product {
id: ID!
name: String!
sku: String!
price: UnsignedInt!
tax: UnsignedInt!
fee: UnsignedInt!
} Doesn't work with an interface and throw an error same the above: type Query {
products: [Product]!
} Work with separate multiple query: type Query {
simpleProducts: [SimpleProduct]!
complexProducts: [ComplexProduct]!
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think you mean the populate exchange? And you haven't posted more examples here so I have to make an assumption. The But if we figure out how to handle these edge cases correctly, we'll push out a new version ✌️ |
Beta Was this translation helpful? Give feedback.
-
This should be fixed in the latest populate-exchange version which is 0.2.0 |
Beta Was this translation helpful? Give feedback.
This should be fixed in the latest populate-exchange version which is 0.2.0