Skip to content
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
@maraisr

Description

@maraisr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions