Replies: 2 comments
-
@quoyi by the way you can use fragment import as a string value, like: export const SUBJECT = gql`
fragment Subject on Subject {
id
title
category {
...Category
}
}
${require('./CategoryFragment.gql')}
` PS. If you define in right in the javascript code. |
Beta Was this translation helpful? Give feedback.
0 replies
-
By the way when I tried to use .graphql
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My problem like this: evenchange4/graphql.macro#35
CategoryFragment.gql
:and
SubjectFragment.gql
:then i receive error:
TypeError: Cannot read property 'filter' of undefined
debug info:
Beta Was this translation helpful? Give feedback.
All reactions