I discovered dependent queries in another post but I’m unsure as how to implement it. I’d like to preform a query dependent on a boolean variable. Below is my attempt, but it doesn’t work. Posts I’ve seen on this topic seem to have different syntax than what I’m doing.
const { data, loading, error} = useQuery(QUERY,
{ enabled: false }, // my attempt at a dependent query
{ variables: {
id: id
}
});