FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. Fauna accounts created after August 21, 2024 must use FQL v10. These accounts will not be able to run FQL v4 queries or access the v4 Dashboard. For more details, see the v4 EOL announcement and migration guide. Contact support@fauna.com with any questions. |
Databases
Databases are defined as documents of type database. Databases exist within the system-global root database context.
Aside from keys, all other documents exist within the context of a specific database. All queries are limited to a single database as well, and cannot span across databases.
It is possible to rename a database by updating its name
field.
Renaming a database changes its ref, but preserves inbound references to
the database. The data within a database remains accessible via existing
keys.
When a database is deleted, its associated data becomes inaccessible and is deleted asynchronously.
To learn more about common database operations and functions, see Database recipes.
Structure
Field | Type | Definition and Requirements | ||
---|---|---|---|---|
|
String |
The name of the database. Cannot be |
||
|
String |
A read-only string that provides a globally-unique identifier for this database. |
||
|
Object |
Optional - A JSON object to contain any additional metadata about this database. |
||
|
Number |
A priority between 1 and 500, inclusive. Defaults to 1.
|
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!