'In graphql-yoga, how to import backtick object correctly?
I have graphql express app. Right now, I would like to import the object below from schema.ts to index.ts
export default `{
type Query {
hi: String
}
}`
when I import them into the index.ts, the object changed to the one below
{
type Query {
hi: String
}
}
Because of that, my app does not find the query. how can I import the object correctly?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
