The GraphQL API provides a number of new queries you can use to retrieve account membership details. These are equivalent to the REST List company memberships and Read company membership requests.
The GraphQL queries for reading account memberships are:
accountMemberships—Retrieves a list of users with memberships in a specific account (company)
accountMembership—Retrieves a specific account membership by account ID and user ID
There are also two queries within the User object that you can use to retrieve memberships involving a specific user:
User.currentMembership—Retrieves the membership that the user is currently logged in to, or that the user logged in to most recently
User.memberships—Retrieves the full list of memberships associated with the user.
See the descriptions in the GraphQL API reference for details on authorization rules and the full list of supported query parameters.