ApiV2-GraphQL-Docs
ApiV2-GraphQL-Docs copied to clipboard
Grabbing media.studios from MediaList 500 errors
{
MediaList(mediaId:21827) {
id
media {
id
studios {
edges {
node {
name
isAnimationStudio
}
}
}
}
}
}
This query will reproduce the issue, for some reason when including studios with MediaList as the root it will 500 and return an empty string. This does not happen if MediaListCollection is the root, nor if Media itself is the root.
I believe the issue may be larger than just the studios however, as I was trying to get other stuff from the media and the same issue happened (not all of the attributes cause this though, only some lol). This just happened to be the one I was able to narrow it down to. My use case was doing a SaveMediaListEntry and trying to return back the information modified, along with the Media for that MediaList. When trying to include different information from that Media the 500 occurs.
Ah yeah sorry about that, currently getting nested relations in mutation isn't really supported, you'll need to do another regular query to get the studios here.