You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a checkout using the checkoutCreate mutation. According to the docs, the email parameter is optional. But if I pass nil to it, the APi call fails.
letcheckoutInput=Storefront.CheckoutCreateInput.create(
email:.value(email),// `email` is an optional string and I'm passing `nil` for that parameter
lineItems:.value(lineItemInput),
note:.value(note),
allowPartialAddresses:.value(true))
The .value(:) case itself accepts an optional string value according to the docs.
So I'm not sure why it causes the API call to fail if I actually pass in nil.
The text was updated successfully, but these errors were encountered:
I'm creating a checkout using the
checkoutCreate
mutation. According to the docs, theemail
parameter is optional. But if I passnil
to it, the APi call fails.The .
value(:)
case itself accepts an optional string value according to the docs.So I'm not sure why it causes the API call to fail if I actually pass in
nil
.The text was updated successfully, but these errors were encountered: