Skip to content

Proposal: nested imports #177

@terion-name

Description

@terion-name

This may cover common (as I think) situation when you need to use generated types but slightly change them. As an example — add directives (e.g. add @auth to mutations).

type Mutation @auth {
    #import Mutation.createArticle from "src/schema/generated/mysql.graphql"
}

or/and

type Mutation {
    createArticle @auth {
        #import Mutation.createArticle.* from "src/schema/generated/mysql.graphql"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions