Skip to content

Commit 26d1587

Browse files
committed
examples that go to directives to enable deep linking
1 parent fac1293 commit 26d1587

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

docs/api/examples/plan-search.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,31 @@ query QueryByArgValue($argPair: jsonb) {
6060
}
6161
}
6262
```
63+
64+
# Activity Directive Search
65+
66+
## Query for Activity Directives with a Specific Activity Type
67+
68+
```graphql
69+
query QueryPlansWithActivityType {
70+
activity_directive(where: { type: { _eq: "GenerateData" } }) {
71+
id
72+
type
73+
plan_id
74+
}
75+
}
76+
```
77+
78+
## Query for Activity Directives with a Specific Argument Value Across All Plans
79+
80+
The query below retrieves all activity directives across all plans that have a specific argument substring present (e.g., "thrust"):
81+
82+
```graphql
83+
query QueryPlansWithParameterSubstring {
84+
activity_directive(where: { arguments: { _cast: { String: { _ilike: "%thrust%" } } } }) {
85+
id
86+
plan_id
87+
arguments
88+
}
89+
}
90+
```

0 commit comments

Comments
 (0)