File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1515using VirtoCommerce . ProfileExperienceApiModule . Data . Aggregates . Organization ;
1616using VirtoCommerce . ProfileExperienceApiModule . Data . Commands ;
1717using VirtoCommerce . ProfileExperienceApiModule . Data . Extensions ;
18+ using VirtoCommerce . ProfileExperienceApiModule . Data . Queries ;
1819using VirtoCommerce . ProfileExperienceApiModule . Data . Services ;
1920using VirtoCommerce . StoreModule . Core . Model ;
2021using VirtoCommerce . StoreModule . Core . Services ;
@@ -65,6 +66,22 @@ public ContactType(
6566 Field < StringGraphType > ( "organizationId" )
6667 . ResolveAsync ( async context => await GetCurrentOrganizationId ( context ) ) ;
6768
69+ Field < OrganizationType > ( "organization" )
70+ . ResolveAsync ( async context =>
71+ {
72+ var organizationId = await GetCurrentOrganizationId ( context ) ;
73+ if ( organizationId . IsNullOrEmpty ( ) )
74+ {
75+ return null ;
76+ }
77+
78+ var query = new GetOrganizationByIdQuery ( )
79+ {
80+ Id = organizationId ,
81+ } ;
82+ return await mediator . Send ( query ) ;
83+ } ) ;
84+
6885 Field < StringGraphType > ( "selectedAddressId" )
6986 . Description ( "Selected shipping address id." )
7087 . ResolveAsync ( async context => await GetSelectedAddressId ( context ) ) ;
You can’t perform that action at this time.
0 commit comments