Our application is querying the ChannelInformation from the GraphQL API using the node query but the GraphQL API unexpectedly returns a Channel object. Has anyone encountered this issue? This looks like an API bug to me.
See sample query and result below;
Query:
{
nodes(ids: [“gid://shopify/ChannelInformation/66361729”]) {
__typename
id
… on ChannelInformation {
id
channelId
displayName
app {
id
}
channelDefinition {
channelName
handle
id
subChannelName
isMarketplace
}
}
}
}
In your query, are you certain the GID you’re using is for a ChannelInformation object? The __typename field in your response indicates that the actual type of the object is a Channel, not ChannelInformation object.
If I look at the channelInformation provided in an order it points to the GID gid://shopify/ChannelInformation/66361729 but when we query that node it returns a Channel object. See below for the Order data I am referring to;