Examples based on the local project definition
Note: The project format is still under active development 🚧
Please check out the available example or try to create your own one. This should give you a better foundation to give feedback for the following open questions.
- Naming for project definition file and environment files (Current:
graphcool.yml&.graphcool.env) - Default folder structure (functions, permissions, ...)
- Variable interpolation syntax (based on Serverless's syntax)
- Permission queries:
$authenticatedId: ID!vs.$userId: ID! - support a list of permission queries per permission (combined with AND)? would decrease verbosity and increase composibility, but difficult to validate/map variables
- Should function type with extra configuration be nested or on the top level? If nested,
type: httpRequestwould be a string andtype: serversideSubscriptiona map. - is there ever a
@modeltype that is not aNode, or the other way around?
You can use pajv (npm i -g pajv) to validate files based on JSON schema.
pajv -s json-schema/graphcool.schema.json -d json-schema/graphcool-flat.yml