fauna-labs / serverless-fauna

MIT No Attribution
18 stars 3 forks source link

Update deploy/remove contracts #49

Closed pnwpedro closed 1 year ago

pnwpedro commented 1 year ago

Changes

To deploy only FQL 10 schema

sls fauna deploy --schema-version 10

To deploy only FQL 4 schema

sls fauna deploy --schema-version 4


* Updated top level property for FQL 10 resources from `fqlx` to `fauna_v10`
* Move v10 and v4 schema defs under fauna/<version>/schema folder
* Update deploy/remove query contracts to an array of results. This is more flexible
* Update a number of files names from FQLX* to FQL10*
* Rename many vars from fqlx to fql10
* Update fauna client to 0.9.0
* Update deploy query to construct array more efficiently
* Update function deploy query to prepare it for preview / diffing
* Update remove query to construct array more efficiently

### Testing
* Tests have all been updated and pass.
* Tested locally on a real stack.

### Out of scope
* Readme updates will happen on the version bump (after inclusion of collections, roles, and preview option)
pnwpedro commented 1 year ago

I'm going to split out the refactor so it's a no-op. This PR is too much IMO

pnwpedro commented 1 year ago

Closing in favor of smaller PRs.