This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
getEnumDefinitions
with rare "%future added value"
#81
Comments
This is to be type safe for future enum values you could add more enum types for your graphql schema and it won't break old apps |
For more info see eg this upstream issue facebook/relay#2351 |
@sibelius @alloy thanks for your prompt reply. From my point of view, a type system makes sense when you enforce it, and this kind of entry is not needed as stated in the upstream issue. |
Yup, that simply wasn’t ported over yet because we don’t use that option. A issue for this exists #80 |
No worries! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For example, using
github
graphqlschema.graphql
:It is generated in the following type, containing an extra and rare
"%future added value"
.Source code:
relay-compiler-language-typescript/src/TypeScriptGenerator.ts
Line 578 in 0a1fb9e
Has this extra entry in the alias some especial meaning? It seems error prone.
The text was updated successfully, but these errors were encountered: