Code organization

File Structure

Queries

Some queries will be reused throughout the application and this reuse should be encouraged and easily discoverable.

Other queries will be view specific.

In order to accommodate both use cases, we the file structure will have a queries folder with a shared subfolder. View specific queries should us the name of the component in which they are used.

.
├── queries
│   ├── shared
│   │    └── projectAssets.js
│   └── NewProject.js

Last updated