Skip to content

Commit

Permalink
Merge pull request #5036 from Shopify/filter-orgs-by-permission
Browse files Browse the repository at this point in the history
Filter orgs to only those with develop_apps permission
  • Loading branch information
amcaplan authored Jan 15, 2025
2 parents 3c10c59 + 6c74a9e commit 31ee2c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export const ListOrganizations = {
{
kind: 'Field',
name: {kind: 'Name', value: 'organizations'},
arguments: [
{
kind: 'Argument',
name: {kind: 'Name', value: 'hasAccessToDestination'},
value: {kind: 'EnumValue', value: 'DEVELOPER_DASHBOARD'},
},
],
selectionSet: {
kind: 'SelectionSet',
selections: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query ListOrganizations {
currentUserAccount {
uuid
organizations {
organizations(hasAccessToDestination: DEVELOPER_DASHBOARD) {
nodes {
id
name
Expand Down

0 comments on commit 31ee2c2

Please sign in to comment.