I'm using Craft Pro 3.0.0-beta.19 and I try to query matrix blocks with craft.matrixBlocks(). Background: I have event series (=structure) with a matrix block containing 1:n dates for each series. My block type in the "dates" matrix block is "eventDate" and looks like this:
this works:
{% set entries = craft.matrixBlocks() %}
Since this is the first matrix block I have I get all the entries I have (2):
{{ entries | length }}
will output: 2
{{ entries.one().type }}
will output: eventDate
Good.
Now I want to limit the blocks to eventDate only
{% set entries = craft.matrixBlocks.type('eventDate') %}
On the first glance this seems to work, I get the same results.
But when I change this to
{% set entries = craft.matrixBlocks.type('WhateverGoesHere') %}
I still get the same results. Am i not understanding this or is it a bug?
Thanks, Matthias