-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importing Schema model into lambda function is not recognised by typescript #428
Comments
Hey @cookiejest, thank you for reaching out. Refer to the following documentation providing an example on using the data client in a lambda function. |
while this approach allows for the function to execute against the schema, it still doesn't allow for the Schema definition to be used like Schema["Connection"] for defining types. At least for me. |
thank you for the information. I will transfer the issue to our API repository for further assistance. |
Hi @cookiejest have you tried using Can you share a little more information on the handler code and the version of the This part of the documentation might be helpful but I will also look into potential options that might be better suited for using the types in a Lambda. |
Hi @cookiejest have you been able to try my suggestion above? Just want to be sure you're unblocked on this issue. |
Environment information
Describe the bug
Using gen2. Want to import the schema into a lambda function. It is not recognised.
Reproduction steps
Define a model:
Try and use the schema definition in a lambda function:
Field types are not recognised:
The text was updated successfully, but these errors were encountered: