fauna-labs / serverless-fauna

MIT No Attribution
18 stars 3 forks source link

Define a new fauna command #40

Closed pnwpedro closed 1 year ago

pnwpedro commented 1 year ago

Make sls fauna deploy|remove handle both resources when declared in the same file.

ServerlessFaunaPlugin
fauna
fauna deploy                    Deploy all schema definitions. FQL X resources are deployed first.
fauna remove                    Remove all schema definitions. FQL X resources are removed last.
fauna fqlx
fauna fqlx deploy               Deploy only FQL X schema definitions. (beta)
fauna fqlx remove               Remove only FQL X schema definitions. (beta)
fauna fql4
fauna fql4 deploy               Deploy only FQL 4 schema definitions.
fauna fql4 remove               Remove only FQL 4 schema definitions.

When both FQL 4 and X resources exist in the same file, the FQL X will deploy first. If remove command is used, the FQL X will remove last.

Testing

pnwpedro commented 1 year ago

I'm going to go ahead and merge this to unblock some things, but I'm happy to address additional feedback if you have more @cleve-fauna