Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 663 Bytes

CONTRIBUTING.md

File metadata and controls

22 lines (17 loc) · 663 Bytes

Rules

These contributing rules are relatively light and are here to keep the codebase consistent and transparent.

1. Naming

  • FQL: CamelCase with the starting letter capitalized too (e.g. CreateFooBarIndex). Should mimick the default FQL naming pattern.

2. Never ask for secrets. Clients are only allowed to be passed to scripts/*.js files.

This is not FaunaDB specific and applies to all clients.

3. Custom FQL starts as a function to receive a user's faunadb.query object

Example

// q = faunadb.query
const CreateFooBarIndex = q => (your_custom_params) => {
  /*
    ...
  */
  return q.CreateIndex(your_custom_params)
}