How to generate union type from GRPC to graphql #6898
Unanswered
ntodorovdespark
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I am trying to generate a grapqhl union type. I have the following GRPC schema that should be translated to Graphql from Graphql Mesh:
message Event {
oneof event {
AEvent aEvent = 1;
BEvent bEvent = 2;
}
}
The result is:
export type Event = {
__typename?: 'Event';
aEvent?: Maybe;
bEvent?: Maybe;
};
I want to have the following as a result:
export type Event = AEvent | BEvent
Beta Was this translation helpful? Give feedback.
All reactions