Closed CarlosNZ closed 5 hours ago
Great. I think we can use enum to specify if it's id or GS1 string being passed as the first input.
assetExists === false
I think it's better as a union result variant (one variant for found one variant for not found).
Suggested implementation:
assetById
query). Planning to change this to a new Gql endpoint which just sends the raw scanned data as parameter. The data could be either an ID (from QR code) or a GS1-formatted stringassetExists
set tofalse
assetExists === false
, it will then ask the user (via confirmation dialog) whether they want to create the asset.insertAsset
GraphQL node, using the previously returned data as the input patch.