feat: multi-workspace followup (#4197)

* Seed UserWorkspace for existing demo/dev users

* add workspaces field to currentUser

* new token generation endpoint for switching workspace

* lint fix

* include dependency

* requested fixes

* resolver test pass

* changing defaultWorkspace and workspaceMember when switching workspaces

* tests fix

* requested changes

* delete user/workspace edge case handled

* after merge

* requested changes

* :wq!

* workspace manytoone relation

* lint fix / import fix

* gql codegen

* Fix migrations and generateJWT

* migration fix

* relations fix

---------

Co-authored-by: martmull <martmull@hotmail.fr>
This commit is contained in:
Aditya Pimpalkar
2024-03-04 15:14:04 +00:00
committed by GitHub
parent 4a0f2e8c24
commit 63d403454c
25 changed files with 363 additions and 22 deletions

View File

@ -36,6 +36,14 @@ export const GET_CURRENT_USER = gql`
workspaceId
}
}
workspaces {
workspace {
id
displayName
logo
domainName
}
}
}
}
`;