Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

feat: add importAsString function #4

Merged
merged 1 commit into from
Oct 21, 2019
Merged

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Oct 21, 2019

Add an importAsString function that can be used in the API to import .graphql files or anything else that should be imported as a string containing the file contents. Works in ES module files.

const result = importAsString("./schema.graphql");

Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kieckhafer kieckhafer merged commit 967438a into trunk Oct 21, 2019
@kieckhafer kieckhafer deleted the feat-aldeed-import-as-string branch October 21, 2019 15:46
@rc-publisher
Copy link
Collaborator

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rc-publisher rc-publisher added the released Applied automatically by semantic-release label Oct 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released Applied automatically by semantic-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants