|FaunaDB Adds Native GraphQL Support|
|Written by Kay Ewbank|
|Thursday, 18 July 2019|
FaunaDB has been updated with a GraphQL API, a web-based version of the Fauna shell, and support for role-based access control.
FaunaDB was developed by former technical leaders at Twitter and Couchbase who wanted to develop a new adaptive operational database to meet the needs they felt were unmet while they were working at Twitter.
The latest release, 2.7, comes with a GraphQL API that makes use of a Calvin-inspired shared core. This provides uniform access to transactional consistency, user authorization, data access and temporal storage. The GraphQL API supports three general functions: Queries, Mutations, and Subscriptions, though only the queries and mutations are natively supported. The team is working on native support for subscriptions is in the roadmap, but at the moment you have to write a custom function to set up a subscription.
You can import GraphQL schemas from the GraphQL tab in the Fauna web editor, and the Prisma GraphQL Playground IDE has been integrated into the Fauna Cloud Console, offering a way to work with GraphQL inside the console.
The new version of FaunaDB also adds support for Role-based access control (RBAC) as a replacement for FaunaDB’s current resource-based security model. Until now, access within FaunaDB was restricted to four pre-defined roles - admin, server, server- read-only, or client. The new support means developers can define custom roles that give access to only the data the user needs to see.
Another improvement to the new release is the addition of a web-based version of the Fauna Shell. This lets users access the Shell command-line from any browser, and run FQL commands and functions directly in the browser.
Support has also been added for recursive user-defined functions, so you can now make recursive calls to user-defined functions. Since recursive calls can be very resource-intensive, the number of calls is restricted to a hard limit of 200.
or email your comment to: email@example.com
|Last Updated ( Friday, 19 July 2019 )|