I tried the following code:
faunaClient.stream(q.Union(
q.Match(q.Index('account_onboarding_batch_upload_hasUndismissedError'), true),
q.Match(q.Index('account_onboarding_batch_upload_processing'), false),
))
And got the following error:
description
:
“Expected a Document Ref or Version, or a Set Ref, got Set.”
message
:
“invalid argument”
name
:
“BadRequest”
According to the docs, Union
returns a SetRef
. Streaming using a single one of those Match
statements worked. So my guess is that set streaming doesn’t support “composite” sets? The documentation doesn’t seem to mention this…