@vue/apollo-composable / useFragment / Result
Interface: Result ​
Result returned by useFragment.
1. Operation data ​
complete ​
complete:
Ref<boolean>
Whether the fragment data is complete.
current ​
Current state as a discriminated union type.
missing ​
missing:
Ref<MissingTree>
Tree of missing field errors when complete is false.
result ​
result:
Ref<object|object[]>
An object containing the result of your GraphQL fragment lookup after it completes.
resultState ​
resultState:
Ref<"complete"|"partial">
Describes the completeness of result.
partial: Some data could be fulfilled from the cache butresultis incomplete. This is only possible whenreturnPartialDataistrue.complete:resultis a fully satisfied query result fulfilled either from the cache or network.
2. Events ​
onNextState ​
onNextState:
EventHookOn<Current>
Event triggered when fragment data changes.