We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from this comment by @BinaryMuse #76 (comment):
export interface MyTestQuery { resource: | SelectionOnResource & Partial<IFragmentIssue> & Partial<IFragmentOrganization> | null; } export interface IFragmentIssue { __typename: string; id: string; title: string; author: SelectionOnAuthor | null; } export interface IFragmentOrganization { __typename: string; orgName: string | null; } but since we know statically what all the typenames are, it could be something like export interface MyTestQuery { resource: | IFragmentIssue | IFragmentOrganization | DefaultSelectionOnResource } export interface IFragmentIssue { __typename: "Issue"; id: string; title: string; author: SelectionOnAuthor | null; } export interface IFragmentOrganization { __typename: "Organization"; orgName: string | null; } export interface DefaultSelectionOnResource { __typename: string; }
export interface MyTestQuery { resource: | SelectionOnResource & Partial<IFragmentIssue> & Partial<IFragmentOrganization> | null; } export interface IFragmentIssue { __typename: string; id: string; title: string; author: SelectionOnAuthor | null; } export interface IFragmentOrganization { __typename: string; orgName: string | null; }
but since we know statically what all the typenames are, it could be something like
export interface MyTestQuery { resource: | IFragmentIssue | IFragmentOrganization | DefaultSelectionOnResource } export interface IFragmentIssue { __typename: "Issue"; id: string; title: string; author: SelectionOnAuthor | null; } export interface IFragmentOrganization { __typename: "Organization"; orgName: string | null; } export interface DefaultSelectionOnResource { __typename: string; }
The text was updated successfully, but these errors were encountered:
Completely off the top of my head and this might be inaccurate, but my thoughts are:
__typename
... on Type
Sorry, something went wrong.
No branches or pull requests
from this comment by @BinaryMuse #76 (comment):
The text was updated successfully, but these errors were encountered: