GraphQL query for listing a user's organizations
We will need a GraphQL query to list all the organizations that a user has access to. This will be used for #417876 (closed)
Designs
For context this API will be used for this UI
Implementation guide
Add an organizations
field to app/graphql/types/user_interface.rb
and create a resolver: Resolvers::Users::OrganizationsResolver
and a finder: Organizations::UserOrganizationsFinder` to find the organizations where the current user has access.
organizations
will be of type: an array of Organizations::OrganizationType
. OrganizationType
is introduced in !128733 (diffs).
Edited by Abdul Wadood