Skip to content

Conversation

@tristandubbeld
Copy link
Contributor

Remove sandbox fragments from mutations

Summary

Removes large GraphQL fragments from mutation return types, replacing them with minimal id fields only. This reduces unnecessary data fetching and simplifies mutation responses.

Changes

  • Sandbox mutations: addToCollectionOrTeam, deleteSandboxes, setSandboxesPrivacy, setSandboxesFrozen, renameSandbox now return only { id } instead of full sandbox fragments
  • Team mutations: acceptTeamInvitation, setTeamName, setTeamMetadata now return only { id } instead of full team fragments
  • Removed unused SearchSandboxesQuery and related references
  • Updated mutation queries to request only id field instead of fragment spreads

Files Changed

  • packages/app/src/app/graphql/types.ts (-565 lines)
  • packages/app/src/app/overmind/effects/gql/dashboard/mutations.ts
  • packages/app/src/app/pages/Dashboard/queries.ts

@codesandbox
Copy link

codesandbox bot commented Nov 25, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@tristandubbeld tristandubbeld merged commit 57d74c3 into main Nov 25, 2025
10 of 11 checks passed
@tristandubbeld tristandubbeld deleted the tristan/csb-761-remove-sandbox-fragment-from-mutations branch November 25, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants