This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Boolean types in arguments doesnt generate boolean variables #198
Open
Description
Logging here so I don't forget.
for the query:
query BlogArticleQuery($isAmp: Boolean!) {
article(slug: "example") {
title(amp: $isAmp) { value }
}
}
should ideally generate as at Relay v9.x:
export type BlogArticleQueryVariables = {
isAmp: boolean;
}
but as at v10
export type BlogArticleQueryVariables = {
isAmp: string;
}
worth also noting that the gql query Relay spits out in ast form is accurate, so this is definitely a bug with the ts langauge.