eddeee888 / graphql-code-generator-plugins

List of GraphQL Code Generator plugins that complements the official plugins.
MIT License
50 stars 12 forks source link

Handle intersection type when getting node properties #106

Closed eddeee888 closed 1 year ago

eddeee888 commented 1 year ago

This will be used when we implement Interface handler because the generated type may look like this:

export type TypeA = {
  __typename: 'TypeA',
  id: string;
}
export type TypeB = TypeA & {   // This is Intersection Union type of ReferencedType and LiteralType
  __typename: 'TypeB',
  id: string;
  otherprop: string;
}
changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 1b46b6973b5cda19b9a9540e0123fcbaa273f6f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------------------- | ----- | | @eddeee888/gcg-typescript-resolver-files | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

eddeee888 commented 1 year ago

/release-snapshot

github-actions[bot] commented 1 year ago

✅ Successfully published package/s with tag pr106-run169-1!