UNPKG

flora-exception

Version:

An exception system for FQL.

8 lines (7 loc) 294 B
import { query as q } from "faunadb"; import { floraCollectionKey } from "../Flora/Key"; export const DeployFloraCollection = () => { return q.If(q.Exists(q.Collection(floraCollectionKey)), q.Collection(floraCollectionKey), q.CreateCollection({ name: floraCollectionKey })); };