Open gituserjava opened 1 year ago
you can use eslint-ignore
directive comments for example
No this did not work for me, what is the syntax to use in Graph ql schema files? I am trying as below, please advise.
# eslint-ignore
extend type Product{
productName: String
}
Same as in eslint :
# eslint-disable-next-line
No this did not work and I believe it is because the graph ql schema is trying to find the parent schema to prepare the consolidated schema. Is there a workaround for this?
Cannot extend type "Product" because it is not defined.
@B2o5T, any work around for this?
We use super graph and some types and inputs may not be available in the current Graph QL schema that we are validating however we will be extending from type defined in super graph as shown in example below, in such a case how can I avoid below two errors? I want to still apply other rules around naming convention, field descriptions etc on the types defined in sub graph. Please advise.
Example: Super graph
Sub Graph
Errors:
Unknown type "Product". Did you mean "Product"?
Cannot extend type "Product" because it is not defined.