<@U04UQ68083H> In Ory Network, is it possible to q...
# ory-copilot
b
@chilly-king-10285 In Ory Network, is it possible to query for all relationships where the object meets a certain pattern? For example, all relationships where object is like
foo.*
b
A message from kapa.ai
I'm sorry, but the knowledge sources do not indicate that Ory Network or Ory Keto supports querying relationships using pattern matching (such as SQL-like wildcards or regular expressions) on the object field. The documented APIs for listing relationships (e.g., the REST endpoint GET /relation-tuples) allow you to filter by exact values for fields like namespace, object, relation, and subject, but there is no mention of support for partial matches or pattern-based queries. All examples and parameter descriptions refer to exact matches only [Query relationships - API reference](https://raw.githubusercontent.com/ory/docs/master/docs/reference/api.json) [API overview](https://www.ory.sh/docs/keto/concepts/api-overview). If you need to retrieve all relationships where the object matches a certain pattern (e.g., starts with "foo."), you would need to fetch all relationships and perform the filtering client-side after retrieving the data. If you have a large dataset and require this feature, you may want to consider submitting a feature request to the Ory team.