forked from hoppscotch/hoppscotch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migration teams adapters to urql
- Loading branch information
1 parent
4836948
commit eae94e3
Showing
15 changed files
with
534 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/hoppscotch-app/helpers/backend/gql/queries/GetCollectionChildren.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
query GetCollectionChildren($collectionID: ID!) { | ||
collection(collectionID: $collectionID) { | ||
children { | ||
id | ||
title | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/hoppscotch-app/helpers/backend/gql/queries/GetCollectionRequests.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
query GetCollectionRequests($collectionID: ID!, $cursor: ID) { | ||
requestsInCollection(collectionID: $collectionID, cursor: $cursor) { | ||
id | ||
title | ||
request | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/hoppscotch-app/helpers/backend/gql/queries/GetTeamMembers.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query GetTeamMembers($teamID: ID!, $cursor: ID) { | ||
team(teamID: $teamID) { | ||
members(cursor: $cursor) { | ||
membershipID | ||
user { | ||
uid | ||
} | ||
role | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/hoppscotch-app/helpers/backend/gql/queries/RootCollectionsOfTeam.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
query RootCollectionsOfTeam($teamID: ID!, $cursor: ID) { | ||
rootCollectionsOfTeam(teamID: $teamID, cursor: $cursor) { | ||
id | ||
title | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamCollectionAdded.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
subscription TeamCollectionAdded($teamID: ID!) { | ||
teamCollectionAdded(teamID: $teamID) { | ||
id | ||
title | ||
parent { | ||
id | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamCollectionRemoved.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
subscription TeamCollectionRemoved($teamID: ID!) { | ||
teamCollectionRemoved(teamID: $teamID) | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamCollectionUpdated.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
subscription TeamCollectionUpdated($teamID: ID!) { | ||
teamCollectionUpdated(teamID: $teamID) { | ||
id | ||
title | ||
parent { | ||
id | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamMemberAdded.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
subscription TeamMemberAdded($teamID: ID!) { | ||
teamMemberAdded(teamID: $teamID) { | ||
membershipID | ||
user { | ||
uid | ||
} | ||
role | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamMemberUpdated.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
subscription TeamMemberUpdated($teamID: ID!) { | ||
teamMemberUpdated(teamID: $teamID) { | ||
membershipID | ||
user { | ||
uid | ||
} | ||
role | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamRequestAdded.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
subscription TeamRequestAdded($teamID: ID!) { | ||
teamRequestAdded(teamID: $teamID) { | ||
id | ||
collectionID | ||
request | ||
title | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamRequestDeleted.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
subscription TeamRequestDeleted($teamID: ID!) { | ||
teamRequestDeleted(teamID: $teamID) | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamRequestUpdated.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
subscription TeamRequestUpdated($teamID: ID!) { | ||
teamRequestUpdated(teamID: $teamID) { | ||
id | ||
collectionID | ||
request | ||
title | ||
} | ||
} |
Oops, something went wrong.