We are very excited to announce the General Availability for two feature additions to our Schema as Code product suite that will make developing enterprise-grade applications with Fauna even easier: Computed Fields and Check Constraints. Computed Fields are fields whose values are derived by an expression a user has assigned to that field and enable users to compose objects and field values dynamically. Computed Fields can be indexed, increasing the flexibility users have in setting query patterns. Check Constraints are rules, defined as part of a user’s schema, and are used to assure the value of a given field is within an allowed set of ranges. Check Constraints are particularly useful as they assure that the field values are correct and sensible for the user’s specific business logic. Check out the docs for more information here and here, and watch the explainer video for a walk-through!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Schema Enforcement + Zero-Downtime Migrations alpha | 1 | 108 | July 17, 2024 | |
Read restriction. (field level) | 4 | 280 | June 21, 2022 | |
Data validation in FQL with ABAC | 3 | 1764 | May 4, 2021 | |
GraphQL: query by nested field reference/ID | 3 | 1086 | May 4, 2021 | |
Easier access to Fauna-generated GraphQL schema (compatible with https://graphql-code-generator.com/) | 4 | 1860 | January 5, 2022 |