Filter with GraphQL
Learn how to filter query results using GraphQL with TerminusDB and TerminusCMS
To use this How-To, first clone the Star Wars demo into your team on TerminusCMS. You will then have full access to the data needed for this tutorial
Using a Filter
Once you have Star Wars, you can enter the data product and you can type the following in the GraphQL query panel:
Let's choose homeworld
Type Ctrl-c
and you'll be given some filters which can be used to constrain the label field.
Let's choose a regex which demonstrates the fondness the creators of Star Wars had for the 'oo' sound.
This results in:
For more sophisticated filtering, see Advanced filtering.
Last updated