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
Hello. I am unable to stitch 2 types from a subgraph, but only when they are in a collection. The GetVessel() works fine and stitches 2 fields, while GetVessels does not and throws exception:
Operation is not valid due to current state of object
What am I doing wrong?
[QueryType]
public static class Query
{
public static Vessel GetVessel()
=> new()
{
Id = "1",
Type = "LNG"
};
public static Vessel[] GetVessels()
=> [
new()
{
Id = "1",
Type = "LNG"
},
new()
{
Id = "2",
Type = "Cargo"
}
];
}
[QueryType]
public static class Query
{
public static Vessel GetVessel()
=> new()
{
Id = "1",
Status = "Good"
};
public static Vessel[] GetVessels()
=> [
new()
{
Id = "1",
Status = "Good"
},
new()
{
Id = "2",
Status = "Bad"
}
];
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. I am unable to stitch 2 types from a subgraph, but only when they are in a collection. The GetVessel() works fine and stitches 2 fields, while GetVessels does not and throws exception:
What am I doing wrong?
Seems like second fetch doesn't get the Id?
Beta Was this translation helpful? Give feedback.
All reactions