Skip to content
New issue

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

Support for leading vertical bar in union types #465

Open
nullworkbench opened this issue Oct 10, 2024 · 0 comments
Open

Support for leading vertical bar in union types #465

nullworkbench opened this issue Oct 10, 2024 · 0 comments

Comments

@nullworkbench
Copy link

First of all, I want to express my sincere gratitude to the developers of Lacinia for their hard work to maintaining this project.

Currently, the following notation is supported,

union SomeUnionType =
    TypeA
  | TypeB
  | TypeC

But, writing like below will throw Failed to parse GraphQL schema. exception.

union SomeUnionType =
  | TypeA
  | TypeB
  | TypeC

I would like to request support for leading vertical bar in union types.

This is already supported in the graphql-spec.

Union members may be defined with an optional leading | character to aid formatting when representing a longer list of possible
https://github.com/graphql/graphql-spec/blob/main/spec/Section%203%20--%20Type%20System.md#unions

Thank you for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant