The Grafbase Search is deprecated. Use connectors to federate your existing data sources.
Grafbase Search now supports filtering with regular expressions!
The new regex
is available for String
-like field types, including URL
, Phone
, Email
and String
.
No additional configuration is required to enable regex
filtering:
query {
userSearch(first: 100, filter: { email: { regex: ".*@grafbase\.com" } }) {
edges {
node {
name
email
}
}
}
}
Make sure to replace userSearch
and email
with your model and field names.
You should see a response that looks something like:
{
"data": {
"postSearch": {
"edges": [
{
"node": {
"name": "Jamie Barton",
"email": "jamie@grafbase.com"
}
},
{
"node": {
"name": "Benjamin Rabier",
"email": "benjamin@grafbase.com"
}
}
]
}
}
}
You can try this out today using the Grafbase CLI when working locally, or in production via your project's Dashboard and Pathfinder.
We'd love to hear your feedback and ideas, so join us on Discord.