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
query BookmarkListAllItems($id: ID!, $includeInfo: Boolean!, $batchCount: Int = 12, $cursor: String) {
viewer {
bookmarks(id: $id) {
items(first: $batchCount, after: $cursor) {
pageInfo {
hasNextPage
}
edges {
cursor
node {
id
...GQLBasicInfo @include(if: $includeInfo)
...GQLOtherInfo @include(if: $includeInfo)
}
}
}
}
}
}
fragment GQLBasicInfo on SomeInterface {
title
...
}
fragment GQLOtherInfo on SomeInterface {
description
...
}
I use this query to get either just ids or a bunch of other info based on the includeInfo variable. When it's set to true everything works fine, but setting it to false leads to an error from the Apollo framework, which looks like this:
I just released Apollo iOS 0.7.0-alpha.1, which uses the updated codegen and should support @skip/@include. There have been quite a few changes to the codegen, so there might be slight differences in the generated code (especially for type conditions). That's one of the reasons I've labeled it alpha for now. Would be great if people could try it out and provide feedback!
I have the following query
I use this query to get either just ids or a bunch of other info based on the
includeInfo
variable. When it's set totrue
everything works fine, but setting it tofalse
leads to an error from the Apollo framework, which looks like this:So it seems that Apollo is expecting the
title
field to be in the response during parsing although it shouldn't care about it.The text was updated successfully, but these errors were encountered: