Skip to content

Commit

Permalink
Merge pull request #2366 from planetarium/improve/inventory-item-type
Browse files Browse the repository at this point in the history
Add fungibleItemId on inventory item
  • Loading branch information
ipdae authored Dec 22, 2023
2 parents b467771 + d19c4a1 commit 710fc5e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ public InventoryItemType()
return tradableItem.TradableId;
}

return null;
});
Field<StringGraphType>(
"fungibleItemId",
resolve: context =>
{
if (context.Source.item is IFungibleItem fungibleItem)
{
return fungibleItem.FungibleId.ToString();
}

return null;
});
}
Expand Down

0 comments on commit 710fc5e

Please sign in to comment.