verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

Query node type or typeLabel in Twig #347

Closed TomDeSmet closed 1 year ago

TomDeSmet commented 1 year ago

What are you trying to do?

It seems this is possible according to the docs in GraphQL, but there's no node type query param for Twig. I have created my own node and would like to fetch only these nodes so something like craft.navigation.nodes().type("MyType").all() or typeLabel.

What's your proposed solution?

Add a type or typeLabel param.

Additional context

No response

engram-design commented 1 year ago

Looks like this is just missing from the docs. Updated