@vue/apollo-composable / useFragment / Options
Interface: Options ​
Options for useFragment.
1. Fragment ​
fragment ​
fragment:
MaybeRefOrGetter<DocumentNode>
A GraphQL fragment document.
fragmentName? ​
optionalfragmentName:MaybeRefOrGetter<string>
Name of the fragment to use if document contains multiple fragments.
variables? ​
optionalvariables:MaybeRefOrGetter<ReactiveVariablesParameter>
Variables for the fragment.
2. Data Source ​
from ​
from:
MaybeRefOrGetter<FromValue|FromValue[]>
Cache identifiable entity to read the fragment from.
3. Configuration ​
clientId? ​
optionalclientId:string
ID of a named Apollo client to use.
optimistic? ​
optionaloptimistic:boolean
Read from optimistic cache data.
Default Value ​
ts
true