0

I have issue where I cannot map Long type in Swift.

E.g. schema.graphql

scalar Long

input TableLongFilterInput {
  between: [Long]
  contains: Long
  eq: Long
  ge: Long
  gt: Long
  le: Long
  lt: Long
  ne: Long
  notContains: Long
}

But in Swift I get type of any?

I tried with scalar Long at the top of schema or mapping it to Int64 but I always get any?
I cannot change schema.

I was using:

 NRGkick % npx @aws-amplify/cli codegen models \                              
  --model-schema ./schema.graphql \
  --target ios \
  --output-dir ./Models \
  --scalars '{"Long":"Int64"}'

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.