Skip to content

Ability to imports graphql file in graphql file #25

@seahindeniz

Description

@seahindeniz

Hello

Thanks for creating this plugin :)

Can this plugin have ability to import graphql files inside the graphql file?
Like adding a additional ability for importing .gql and .graphql files.

Like:

./attachment.graphql

fragment attachmentFragment on Attachment {
  id
  url
  thumbnailUrl
}

./user.graphql

#import "./attachment.graphql"

fragment userFragment on User {
  id
  nick
  avatar {
    ...attachmentFragment
  }
}

Expected output would be like:

fragment userFragment on User {
  id
  nick
  avatar {
    ...attachmentFragment
  }
}
fragment attachmentFragment on Attachment {
  id
  url
  thumbnailUrl
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions