Setup is like this:
UserSchema:
...
fields: {
foodID: UUIDType({
fieldEdge: { schema: "Food", inverseEdge: "users" },
}),
...
FoodSchema:
...
edges: [
{
name: "users",
schemaName: "User",
},
Codegen is successful, but I think some files/naming is missing/incorrect? When running the query in GraphiQL, it produces the error "message": "options.ctr is not a constructor". I saw that in user_to_foods_connection_type.ts, UserToFoodsEdge is missing:
import { UserToFoodsEdge } from "src/ent/";
Am I missing something in my setup?