-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate schemaless demo to typescript, use material-ui and Monaco editor #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together!
import actions_in_repos_with_min_hn_pts from '../../../schemaless/example_queries/actions_in_repos_with_min_hn_pts.graphql'; | ||
// @ts-ignore | ||
import crates_io_github_actions from '../../../schemaless/example_queries/crates_io_github_actions.graphql'; | ||
// @ts-ignore | ||
import hackernews_patio11_own_post_comments from '../../../schemaless/example_queries/hackernews_patio11_own_post_comments.graphql'; | ||
// @ts-ignore | ||
import repos_with_min_hackernews_points from '../../../schemaless/example_queries/repos_with_min_hackernews_points.graphql'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this just read the raw string into the import
variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. If we want to "do this right", I'd create a separate example queries dir inside this folder! If you look at the webpack config, you'll see that I set it up so that importing graphql files reads as raw strings.
No description provided.