|
Submit an issue or vote on the corresponding issue if it already exists. We are committed to improving overall performance and will continue to deliver improvements that address performance-related issues. Be sure to follow us on so you don’t miss any updates Announcements Released by Prism Don’t miss the next post Client Extension Now in Production Jarrell Jon Harrell Jon Harrell With Version Release Client Extension Now Generally Available This new feature allows users to extend and customize the client to suit their individual use cases. Customize the client to fit the needs of your codebase We've released the client extension as a preview feature. Today we are excited to announce the general availability of the client extension. The extension has proven to be very useful and powerful during the preview period and even powers products such as Simple and Easy to Use. If this is the first time you have heard of client extensions, don.
Worry. We have an existing blog post that go photo editing servies es into depth about its usage. To summarize creating an extension is like using this code snippet which shows how to use an extension to add a new method to a model. If you need a method on all your models you can even use the built-in functionality. To take a deeper look at what we have done with extensions in this release For changes please see our release notes Community-Built Extensions While client extensions are now generally available we've seen some cool examples. What a great contribution to our community. It's also easy to import and use external client extensions Reference examples for various use cases In we also have a set of reference examples in the examples repository .
Showcasing different areas where we think client extensions can be useful. The repository currently contains the following examples Extended Example Description Audit Log Context Provide the current user's context as an audit log trigger No callbacks Add a way to start an interactive transaction without a callback Calculated fields Add a virtual calculated field to the result object input Transform Transform the input parameters passed to the client query to filter the result set Input validation Run custom validation logic on the input parameters passed to the mutation method Instance method Add similar methods to the result object Field types Use strong for the data stored in the column Type runtime parsing model filters Add reusable filters that can be combined into complex conditions on the model Obfuscate fields Prevent sensitive data such as password fields from being included in .
|
|