GraphQL Query for ChannelInformation node returns a Channel object

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
}
}
}
}

Result:

{
“data”: {
“nodes”: [
{
“__typename”: “Channel”,
“id”: “gid://shopify/Channel/66361729”
}
]
},
“extensions”: {
“cost”: {
“requestedQueryCost”: 3,
“actualQueryCost”: 1,
“throttleStatus”: {
“maximumAvailable”: 2000,
“currentlyAvailable”: 1999,
“restoreRate”: 100
}
}
}
}

Hi @Mathieu_Nunez

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.

@Liam-Shopify yes I am certain. I have provided the query used above.

@Liam-Shopify is this the appropriate place to report this issue or should I report this also with Shopify Partner support?

Are you still seeing this issue @Mathieu_Nunez ?

@Liam-Shopify yes the issue is still here.

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;

“data”: {
“nodes”: [
{
“__typename”: “Order”,
“id”: “gid://shopify/Order/4860377805”,
“number”: 1004,
“cancelledAt”: “2017-01-09T11:51:51Z”,
“closedAt”: null,
“createdAt”: “2017-01-06T03:44:24Z”,
“updatedAt”: “2024-12-15T23:08:48Z”,
“channelInformation”: {
“id”: “gid://shopify/ChannelInformation/66361729”,
“channelId”: “gid://shopify/ChannelInformation/66361729”,
“displayName”: “Online Store”
}
}
]
},