There is a field for a “cover” for a project. in this field I can select between an image block or a local video block with a poster image. in the panel, under “projects” I want to show either that image or that poster image in the card for the project based on which block was used for the cover field.
this works as stand alone queries
query: page.cover.toBlocks().first.vidposter.toFile()
query: page.cover.toBlocks().first.image.toFile()
I look for something like:
query: page.cover.toBlocks().first.image.toFile() or page.cover.toBlocks().first.vidposter.toFile()
what would be the correct query for that?
Thank you for your wisdom.