Skip to content

Commit

Permalink
fix: member dynamic properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Jan 8, 2025
1 parent 5a8af30 commit c159596
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ protected MemberBaseType(

#endregion

ExtendableField<NonNullGraphType<ListGraphType<DynamicPropertyValueType>>>(
ExtendableFieldAsync<NonNullGraphType<ListGraphType<DynamicPropertyValueType>>>(
"dynamicProperties",
"Dynamic property values",
QueryArgumentPresets.GetArgumentForDynamicProperties(),
context => dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source.Member, context.GetArgumentOrValue<string>("cultureName")));
async context => await dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source.Member, context.GetArgumentOrValue<string>("cultureName")));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public RegisterContactType(IDynamicPropertyResolverService dynamicPropertyResolv
Field<StringGraphType>("createdBy");
Field<StringGraphType>("about");
ExtendableField<MemberAddressType>("address", resolve: context => (context.Source).Addresses?.FirstOrDefault());
ExtendableField<ListGraphType<DynamicPropertyValueType>>(
ExtendableFieldAsync<ListGraphType<DynamicPropertyValueType>>(
"dynamicProperties",
"Contact's dynamic property values",
QueryArgumentPresets.GetArgumentForDynamicProperties(),
context => dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source, context.GetArgumentOrValue<string>("cultureName")));
async context => await dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source, context.GetArgumentOrValue<string>("cultureName")));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public RegisterOrganizationType(IDynamicPropertyResolverService dynamicPropertyR
Field<StringGraphType>("status");
Field<StringGraphType>("createdBy");
Field<StringGraphType>("ownerId");
ExtendableField<ListGraphType<DynamicPropertyValueType>>(
ExtendableFieldAsync<ListGraphType<DynamicPropertyValueType>>(
"dynamicProperties",
"Contact's dynamic property values",
QueryArgumentPresets.GetArgumentForDynamicProperties(),
context => dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source, context.GetArgumentOrValue<string>("cultureName")));
async context => await dynamicPropertyResolverService.LoadDynamicPropertyValues(context.Source, context.GetArgumentOrValue<string>("cultureName")));
}
}
}

0 comments on commit c159596

Please sign in to comment.