mutation CartCreate($input: CartCreateInput!) { cartCreate(input: $input) { id # Check the Cart type for its fields }}
You are not required to, but you can provide metadata and products to the cartCreate mutation.The βmetadataβ field doesnβt have a set structure and can accept any correctly formatted JSON object.