I have this schmea
type Form {
name: String!
index: Int!
values: [FormInputVal!] @relation
user: User!
}
type FormInputVal {
name: String!
index: Int!
type: String!
formers: [Form!] @relation
}
type User {
name: String!
email: String!
password: String!
forms: [Form!]
}
type Query {
allForms: [Form!]
allUsers: [User!]
allFormInputVals: [FormInputVal!]
}
I ahve created a entry with the following formInputVal collection conntected to the form ID
createFormInputVal(
data: {
name: $name
index: $index
type: $type
formers: { connect: "291887537290478089" }
}
) {
name
type
index
_id
}
How would I query all the formInptVal from that formId, I don’t see a way to do so in graphQL. Basically I have many formInputVals per Form and want to query them based on the Form types ID
I’ve tried
findFormByID(id:"291887537288380937"){
values{
data{
name
}
}
}
and it returns instance not found