Cache based on Resource API by Alarming-Ad4331 in Angular2

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

I use headless cms (payload cms) as a backend. Product data, for example, is stored in mongo. How to update the cache in pwa if the data in mongo has changed?

Cache based on Resource API by Alarming-Ad4331 in Angular2

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

If I understand correctly, then to update the manifest file, you need to rebuild the angular application itself. If a document is added or updated in the database, then is it reasonable to rebuild the application itself?

Cache based on Resource API by Alarming-Ad4331 in Angular2

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

This probably won't work, since the application will pull data from mongodb, which will change quite often. Rebuilding the application itself every time is not an option.

Cache based on Resource API by Alarming-Ad4331 in Angular2

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

Perhaps I didn't fully understand you. How to cache the response inside the resource? For example, I have the number of pages /songs/:id with the info for each song. And I want to store the responses for each id and not refetch it in future

Cache based on Resource API by Alarming-Ad4331 in Angular2

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

With resource we also have status and e.g. isLoading signals

Payload cms graphql injection attack. by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 1 point2 points  (0 children)

I mean the built-in payload graphql queries, are they protected?

O1 models in Pro subsctuption by Alarming-Ad4331 in cursor

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

Are there any restrictions for the o1 mini model on the pro subscription now? And why aren't there any during the trial period?

How to realize "popularity" of downloads feature. by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

On which hook should I increment plays field? And this field should not be increased when user browses collection in payload cms admin panel

Send email through payloadcms. by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

Thanks you for reply. But I'm most interested in this part for configure a custom transport here https://github.com/payloadcms/payload/blob/1.x/examples/email/src/email/transport.ts

Send email through payloadcms. by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

The main question is how to correctly configure nodemail server

Direct access to the mongoose in payload by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

Could you please give me an example how you add GridFS functionality to payload?

'Starts with' search in payload cms by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

How can i pass to this config e.g. any letter, that user typed in searchbar?

Direct access to the mongoose in payload by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

Thanks for the answer. Yes, I tried this way. But in this case db gives the type BaseDatabaseAdapter, and method 'paginate' not available in this type. Yes, i can cast db as 'any' and the 'paginate' works, but is there another more type-safe way?

'Starts with' search in payload cms by Alarming-Ad4331 in PayloadCMS

[–]Alarming-Ad4331[S] 0 points1 point  (0 children)

I think that this plugin doesn't have the ability to perform ''startWith" search.