I’m trying to figure, if it’s even possible, to use an array of ids to select multiple documents. Fauna actually accepts this schema but when I try to use it, it fails with the message:
Scalar expected, Array provided.
allCollectionByIds(collectionID: [ID!], type: FormulationType): [FormulationCollection!]
query {
allCollectionByIds(collectionID: ["286331148573868550"]) {
after
before
data {
_id
votes {
data {
ownerID
value
}
}
formulations {
data {
_id
name
}
}
}
}
}
Any idea if this is possible? I tried to create resolver but I didn’t manage to get it to work as I have a few relations for this type.
type FormulationCollection {
type: FormulationType!
status: FormulationStatus
questID: ID!
formulations: [Formulation!] @relation
quest: Quest!
votes: [Vote!] @relation
collectionID: ID
}