I am typing out my typedDefs and for one property it can return either String or Boolean.
const typeDefs = `
type Analysis {
id: String
analysisName: String
creator: String
description: String
datesValid: String
}
`
I want datesValid to be either String or Boolean. I tried:
const typeDefs = `
...
datesValid: boolString
}
union boolString = String | Boolean
`
But this resulted in a 500 internal server error when trying to query via GraphiQL.
My end goal here is to type it as either String | Boolean