I have a time consuming problem and no idea what I can test more. This is working, but I need the in Recruiter for positions an array. But then I have a many to many connection and nothing is working anymore. Is there a nice way to solve it? Here is my code:
type Position @model @auth(rules: []) {
id: ID!
title: String!
candidates: [Candidate]! @connection(name: "PositionCandidates")
interestedRecruiters: [Recruiter]! @connection(name: "PositionRecruiter")
}
type Candidate @model @auth(rules: []) {
id: ID!
firstname: String!
lastname: String!
email: AWSEmail!
birthday: AWSDate!
position: Position! @connection(name: "PositionCandidates")
}
type Recruiter @model @auth(rules: []) {
id: ID!
firstname: String!
lastname: String!
email: AWSEmail!
birthday: AWSDate!
positions: Position! @connection(name: "PositionRecruiter")
}
thanks !