Skip to content

Instantly share code, notes, and snippets.

@Chukslord1
Last active April 5, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chukslord1/734cbaa32324eba23fa2d359b7fb33e0 to your computer and use it in GitHub Desktop.
Save Chukslord1/734cbaa32324eba23fa2d359b7fb33e0 to your computer and use it in GitHub Desktop.

To create a collection, click on CREATE COLLECTION then provide information for the required fields. It will require you to enter the name of the collection, the History Days and TTL. The History Days field refers to the number of days you want Fauna to keep a historical record of any data in that collection. The TTL refers to an expiry date for data in the collection. For example, if the TTL is 3, Fauna will auto-delete any data stored in the database three days after the last date you modified it. After saving the collections you just created, you will notice there are no documents in your collections. A document is like rows of data in a table as in a relational database system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment