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
I've enabled support for defer in my Hot Chocolate (C#) GraphQL backend where some of the data arrives late. It works fine when I try it out using Banana Cake Pop (GraphQL IDE) locally, however, it gives me an Apollo parsing error when I try to use this in my gql query string in Apollo-Angular. Is defer supported yet?
the data that should arrive late is wrapped in a @defer json object
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
-
Hi,
I've enabled support for defer in my Hot Chocolate (C#) GraphQL backend where some of the data arrives late. It works fine when I try it out using Banana Cake Pop (GraphQL IDE) locally, however, it gives me an Apollo parsing error when I try to use this in my gql query string in Apollo-Angular. Is defer supported yet?
the data that should arrive late is wrapped in a @defer json object
{
resolverResponse(id: "${id}") {
object {
field1,
field2
}
... @defer {
restResponse {
field1,
field2
}
}
}
}
best regards,
Espen
Beta Was this translation helpful? Give feedback.
All reactions