Skip to content
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

How to use it in real project? #3

Open
denandreychuk opened this issue Jul 4, 2022 · 6 comments
Open

How to use it in real project? #3

denandreychuk opened this issue Jul 4, 2022 · 6 comments

Comments

@denandreychuk
Copy link

Hi! I think that this is exactly what i need, but I'm not sure how to use it in my code. Could you please provide some general example for this library?

@denandreychuk
Copy link
Author

@astorozhevsky ^

@astorozhevsky
Copy link
Contributor

@denandreychuk Hi! Unfortunately, this library is no longer supported.

But if you describe your problem, I will be glad to help you!

@denandreychuk
Copy link
Author

After I installed the library, and try to use it with DocumentReference, I still have this error:

ERROR [ExceptionsHandler] Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string. Error: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.

If I understand correctly, this one should extend functionality of TransformOperationExecutor to make it suitable with Firebase. Am I need some additional setup to make things work?

@astorozhevsky
Copy link
Contributor

@denandreychuk could you please clarify which version you have installed? There are two versions:

@denandreychuk
Copy link
Author

denandreychuk commented Jul 17, 2022

Thank you for your reply! I'm using backend version for NestJS.
@ronas-it/class-transformer-firestore: 1.0.6-rc

@astorozhevsky
Copy link
Contributor

@denandreychuk Thanks for the clarification!

Could you please try to install the latest version and test:

npm intall --save @ronas-it/class-transformer-firestore@2.0.0-rc1

Note: make sure to import it in a global place, like main.ts:

import '@ronas-it/class-transformer-firestore';

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants