You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type queryAccounts struct {
Accounts []struct {
ID string graphql.String `graphql:"id"`
Type string graphql.String `graphql:"type"`
Region string graphql.String `graphql:"region"`
Owners string []graphql.String `graphql:"owners"`
}`graphql:"allAccountsList(filter:{region: {equalTo: $region}, types:{in: $types}})"`
}
The problem is, the filter [types](types:{in: $types}}) is not always needed. Sometimes i want to query with filter like region=west, types=["test","production","preproduction"], sometimes i just want to query with filter region=east.
How to make the filter types optional? thanks.
The text was updated successfully, but these errors were encountered:
I have a query structure defined like this:
The problem is, the filter
[types](types:{in: $types}})
is not always needed. Sometimes i want to query with filter likeregion=west, types=["test","production","preproduction"]
, sometimes i just want to query with filterregion=east
.How to make the filter
types
optional? thanks.The text was updated successfully, but these errors were encountered: