If I want to keep the following declarations as they are, how can I specifically retrieve the type of the members
property?
export type Members = {
__typename?: 'Members';
id?: Maybe<Scalars['String']>;
...
};
export type ProjectQuery = {
__typename?: 'Query';
Project?:
| {
__typename?: 'Project';
teams?:
| Array<
| {
__typename?: 'Teams';
members?:
| Array<
| {
__typename?: 'Members';
id?: string | null | undefined;
...
}
| null
| undefined
>
| null
| undefined;
}
| null
| undefined
>
| null
| undefined;
}
| null
| undefined;
};
export type ProjectData = NonNullable<ProjectQuery['Project']>;
In my Vue
store, I attempted this:
async myStoreAction(context, { Members }: { members: NonNullable<ProjectData['teams']['members']> }) { ... }