I have a graphql schema
type Post {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
tags:[Tag!]!
}
type Tag {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
name: String!
posts:[Post!]!
}
So, a tag can be applied to many posts and a post can have many tags.
Prisma generates code without any issues, but running a graphql server gives
Error: Unknown type "TagOrderByInput". Did you mean "PostOrderByInput", "UserOrderByInput", "LikeOrderByInput", "TagWhereInput", or "CommentOrderByInput"?
at assertValidSDL (/home/andriy/app/apollo/prisma/node_modules/graphql/validation/validate.js:89:11)
I am using docker with Prisma and Mysql. Is it possible to have such a relationship? If so what I am doing wrong?