You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have troubles trying to import a schema generated by postgraphile.
Attempt 1
I first tried importing a specific type like this: # import ProdAttrsConnection from './generated/postgraphile.graphql'
After writing the import line, I get this error with different types: Unknown type "ProductToAttrsOrderBy". The types that throw the error are not even dependencies of the one I imported, so I think it is a schema validation error. In the case of the error I mentioned, ProductToAttrsOrderBy is an enum and it is declared in the schema.
Attempt 2
Then I tried importing the whole schema like this: # import * from ./generated/postgraphile.graphql
In this case, I don't get an error by just writing the import line, but when I use any imported type I get this error with multiple types: Interface field Node.nodeId expected but ProdItemAttr does not provide it.
Here are the types corresponding to the error I mentioned:
I have troubles trying to import a schema generated by postgraphile.
Attempt 1
I first tried importing a specific type like this:
# import ProdAttrsConnection from './generated/postgraphile.graphql'
After writing the import line, I get this error with different types:
Unknown type "ProductToAttrsOrderBy".
The types that throw the error are not even dependencies of the one I imported, so I think it is a schema validation error. In the case of the error I mentioned,ProductToAttrsOrderBy
is an enum and it is declared in the schema.Attempt 2
Then I tried importing the whole schema like this:
# import * from ./generated/postgraphile.graphql
In this case, I don't get an error by just writing the import line, but when I use any imported type I get this error with multiple types:
Interface field Node.nodeId expected but ProdItemAttr does not provide it.
Here are the types corresponding to the error I mentioned:
The text was updated successfully, but these errors were encountered: