FQL (Fauna v10)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4], [5].
Snapshot FQL (FQL v10) — released 22 August 2023 · lifecycle retired
Family Fauna FQL — shelf: Data and Science
The language’s primary object is a dataset or a numeric array, not a program loop. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory FQL v4 (legacy language) (November 2020 — the legacy query language carried by API version 4 in the drivers; its decommission was announced for 2025-06-30) · FQL v10 (22 August 2023 — assessed release: general availability of the TypeScript-inspired redesign with the FSL schema language) · Fauna service end of life (30 May 2025 — the service shut down and accounts were deleted; drivers and CLI remain open source, the promised open-source core engine has no release)
Tags
Use — Data and statistics, Query
Paradigm — Functional, Declarative
Lifecycle — Retired
Memory — Runtime-managed
Typing — Static, strong
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to FQL (FQL v10); an unmarked link is the current reference for the language.
Landing page
Specification and reference
1 Assessment
This page assesses FQL v10 (Fauna; service shut down 2025-05-30) in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 85.7/100 · Ecosystem coupling 63.3/100 · Engineering readiness 33.9/100
1.1 Core coupling
1.1.1 Type
- ✅ Every expression is checked before it runs: FQL is statically typed, and a mismatch rejects the query as invalid_query with the source location and a hint, before evaluation
- ✅ Sum types exist: field types and let-bindings take unions such as
status: "cart" | "processing", and the type docs state unions “can be combined to emulate abstract data types found in other functional languages” (T4) - ✅ Absence is in the type:
byId()returns a Document or a typed NullDoc,?.chains,??defaults, and!asserts non-null at run time, so “may be absent” is written where the compiler sees it (T10) - ⚠️ The check is optional per database and per call: type checking is a database setting (
typechecked: true) and a driver option, and with it off the same query fails only when the NullDoc arrives
1.1.2 Construction
- ✅ Values bind, they do not sit:
letintroduces a typed binding, queries compose as expressions, and the language has no assignment that mutates a binding - ⚠️ Writes validate against the schema: field definitions, wildcard constraints, and check constraints are enforced by the database on write, in schemaless, permissive, or strict modes the FSL schema chooses
1.1.3 Memory
- ✅ Allocation is the service’s: documents, indexes, and query state live in the Fauna service, and the query text allocates nothing
1.1.4 Error
- ❌ No handling construct exists in the language: a failed query returns an error response and aborts the transaction, and FQL defines no try, catch, or handler to route around a failure (Er1)
- ❌ No composable result type: failures cannot ride a value through an expression — only the NullDoc rides
??— so every caller reads the error envelope out of band (Er4) - ✅ The error names its place: the type checker reports
at *query*:3:4with a source excerpt and a hint naming the operator to add
1.1.5 Concurrency
- ✅ Transactions are the service’s: queries run in strictly serialized transactions across regions, and the language names no threads or tasks
1.1.6 Platform
- ❌ One service spoke FQL: queries ran only against the Fauna service over its HTTPS API, and the service shut down on 2025-05-30, so the deployment unit was a vendor account that no longer exists (P1)
- ❌ A poor fit outside operational documents: the unit is the document, reads ride Fauna indexes, and analytics, reporting, and bulk export move to the snapshot exports the migration guide prescribes (P4)
1.1.7 Trade-offs (not coupling)
- A type system above a document store: static typing, unions, and NullDoc handling caught null and shape errors before evaluation — a guarantee no other assessed query DSL offers — and the price was a functional language no SQL reader already knew
- The platform, not the language, ended: FQL v10’s design survives in documentation and open drivers, but the only engine that executed it shut down on 2025-05-30, and the promised open-source core has no release
- Schema as deployed code: FSL made collections, constraints, and functions source with versioned deploys, and the price was that the database’s shape lived in the vendor’s service rather than in any file a team owns
- A clean surface with no escape hatches: no injection surface, no logging, no debugging, no FFI — every operational concern outside the query itself had to route through the vendor’s dashboard, API, or support
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ The read rides an index: collection reads answer from Fauna indexes, and the docs describe index-driven sets as the query’s answer shape
- ⚠️ Pricing follows the ops: the serverless model bills reads, writes, and compute per operation, so a query’s cost is a function of the index plan, visible only through the dashboard’s query stats
1.2.2 Ecosystem
- ❌ The ecosystem closed with the service: drivers for JavaScript, Python, Go, C#, and Java remain open source, but the database they talk to shut down, and the promised open-source core engine has no released implementation (Ec3)
- ❌ The engine was proprietary: the service, its storage, and the query engine were never published under an open license — only the drivers and the CLI were — so no second implementation could exist (Ec4)
1.2.3 Evolution
- ❌ The language was replaced once already: FQL v10 replaced the v4 language wholesale, with a migration guide rather than a compatibility path, before the service itself ended (V1)
- ❌ The platform is discontinued: the Fauna service shut down on 2025-05-30, accounts and data were deleted on that date, and the end-of-life FAQ states no extensions were offered (V3)
1.2.4 Domain
- ❌ Adopting FQL meant adopting Fauna: collections, indexes, keys, roles, and user-defined functions are Fauna resources, and the language’s Set and document model has no meaning outside the service (D1)
- ❌ The schema-first model dictates the data architecture: FSL defines collections, fields, check constraints, and computed fields as deployable source, and the docs frame the database as a deployment target of the schema (D3)
1.2.5 Learning
- ❌ A SQL reader meets a functional language: Sets, higher-order functions, projection syntax, NullDoc handling, and FSL schema deployment have no SQL analog, and the learning path starts at the type system (L1)
- ❌ Three surfaces at once: FQL queries, the FSL schema language, and the dashboard shell all carry the data model, and the v10/v4 split adds a second dialect to every search result (L2)
1.2.6 Syntax
- ✅ The common query reads like TypeScript:
Product.byId(id)?.update(data)states the whole update, and the?.,??, and!operators arrive with widely known meanings
1.2.7 Testing
- ❌ No standard test harness exists in the language: the docs publish no query-test framework, and a team tests FQL through its host-language test suite against a live database (G1)
- ❌ No query-plan tool is published: the dashboard shows per-query stats, and the docs publish no EXPLAIN or plan surface that states how a query will read (G2)
1.2.8 Security
- ✅ Queries compose with bound values: the query is a program, not a concatenated string, values arrive as arguments, and the docs prescribe attribute-based access control through roles rather than string hygiene (Q3)
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| FQL query text and stored FSL/UDF source | script | no | queries travel as request text over the service’s HTTPS API, and collections, functions, and schema definitions are stored by the database as source; no compiled unit crosses a producer boundary |
1.3 Engineering readiness
1.3.1 Reproducibility
- ✅ A query is request text: the same FQL on the same schema and data reproduces the same result, and nothing is built
- ❌ The executing version is the service’s: the repository names no language or engine version — a
schema_versioncomes back in responses — and the one executor that defined semantics no longer runs (Y14)
1.3.2 Supply chain
- ❌ Drivers carry no signed provenance: the client libraries publish to npm, PyPI, and the other registries under ordinary package terms, and a consumer trusts what the registry serves (Y3)
1.3.3 Observability
- ❌ No tracing or metrics standard is part of the language: monitoring was the dashboard’s and the status page’s, and the query text carries no trace hook (Y5)
- ❌ No structured logging in the language: the service kept its own logs, and FQL defines no logging construct a query could call (Y6)
1.3.4 Feedback
- ❌ No debugger exists: diagnosis went through the dashboard’s query logs and stats and the error envelope (Y13)
- ❌ No maintained editor analysis: the dashboard shell ran queries with a schema view, and the docs publish no code-assistance surface for FQL in an editor (Y8)
1.3.5 Interop
- ❌ No foreign-function interface exists: FQL defines no way to call another language’s library in process — not a script embedding, not a native path — so every capability must be an FQL or FSL construct (Y9)
- ❌ No portable target: a query runs on the Fauna service, and nothing in the language runs without it (Y10)
1.3.6 Governance
- ❌ Governance was one company: Fauna, Inc. decided the language’s direction, the service’s terms, and its end — and no independent body could change any of it (Y11)
- ❌ No public specification exists: the reference documents the implemented behavior, and no document a second implementation could follow was ever published (Y12)
- ❌ Correctness was what the service did: no conformance suite or independent implementation ever checked the semantics, so a program’s meaning was a property of one closed engine (Y17)
- ❌ The parser was never readable: the server and its query engine stayed closed source, so the syntax’s ground truth lived in a binary the ecosystem could not inspect (Y19)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
- ⚠️ The engine’s energy was the vendor’s bill and then the vendor’s shutdown; a reader choosing constructs today is reading a language nothing executes, and the levers the syntax exposes — index choice, projection shape — were priced per operation.
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ⚠️ A typed functional query language is unusually checkable ground for generated queries — the type checker rejects a generated null dereference before evaluation — but the platform’s end means the check ran nowhere for the language’s last year, and no model was trained on more than a sliver of v10 code.
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified path; serialized transactions and attribute-based access control were the service’s guarantees, stated in its own documentation and ended with the service.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | — | 0 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | — | 0 | |
T4 |
no sum types | language | — | 0 | |
T5 |
no generics | language | — | 0 | |
T6 |
no namespaces | language | — | 0 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | — | 0 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | ✅ | −8 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | — | 0 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −2.3 (−8) | ||||
| Construction | C1 |
global mutable state by default | language | — | 0 |
C2 |
no immutability by default | language | — | 0 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | 0 | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | — | 0 | |
M3 |
no RAII | language | — | 0 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | 0 | ||||
| Error | Er1 |
no structured path | language | ✅ | −15 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | — | 0 | |
Er4 |
no composable result type | language | ✅ | −4 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −5.4 (−19) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | — | 0 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | — | 0 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | 0 | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | ✅ | −15 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | ✅ | −8 | |
| Platform cost | −6.6 (−23) |
Core coupling score: 85.7/100 — 50 of the 350 inventory points are present, so the axis cost is 100 × 50 ÷ 350 = 14.3 and the score is 100 − 14.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | — | 0 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | 0 | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | ✅ | −8 | |
Ec4 |
proprietary | context | ✅ | −8 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | — | 0 | |
Ec8 |
unpromised binary boundary | context | — | 0 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | −6.2 (−16) | ||||
| Evolution | V1 |
breaking changes | language | ✅ | −8 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | ✅ | −15 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | — | 0 | |
| Evolution cost | −9.0 (−23) | ||||
| Domain | D1 |
domain/vendor lock-in | context | ✅ | −15 |
D3 |
framework forces architecture | context | ✅ | −8 | |
| Domain cost | −9.0 (−23) | ||||
| Learning | L1 |
steep | context | ✅ | −8 |
L2 |
large surface/multi-paradigm | context | ✅ | −4 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | −4.7 (−12) | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | ✅ | −8 |
G2 |
poor debugging | context | ✅ | −8 | |
G3 |
runtime-only errors | context | — | 0 | |
G4 |
no published monotonic clock | runtime | ✅ | −4 | |
| Testing cost | −7.8 (−20) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | — | 0 | |
| Security cost | 0 |
Ecosystem coupling score: 63.3/100 — 94 of the 256 inventory points are present, so the axis cost is 100 × 94 ÷ 256 = 36.7 and the score is 100 − 36.7. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | — | 0 |
Y2 |
dependencies not pinned | context | — | 0 | |
Y14 |
no toolchain version pin | context | ✅ | −8 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | −4.7 (−8) | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | — | 0 | |
Y16 |
no advisory feed | context | ✅ | −8 | |
| Supply chain cost | −13.5 (−23) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | ✅ | −4 | |
Y15 |
no post-mortem diagnostics | runtime | — | 0 | |
| Observability cost | −7.0 (−12) | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | ✅ | −4 | |
Y13 |
no bundled debugger | context | ✅ | −8 | |
| Feedback cost | −7.0 (−12) | ||||
| Interop | Y9 |
no foreign-function interface | language | ✅ | −8 |
Y10 |
no portable target | context | ✅ | −4 | |
| Interop cost | −7.0 (−12) | ||||
| Governance | Y11 |
single-vendor governance | context | ✅ | −15 |
Y12 |
closed specification | context | ✅ | −15 | |
Y17 |
no conformance mechanism | context | ✅ | −8 | |
Y19 |
no published parser | context | ✅ | −8 | |
| Governance cost | −26.9 (−46) |
Engineering readiness score: 33.9/100 — 113 of the 171 inventory points are present, so the axis cost is 100 × 113 ÷ 171 = 66.1 and the score is 100 − 66.1. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: FQL v10 was a TypeScript-inspired functional query language over a document-relational store, and the only one of the assessed query DSLs whose expressions are statically checked against a schema with unions, typed NullDocs, and explicit null operators before a query runs. Its costs were the platform’s: one proprietary service defined, executed, priced, and then discontinued the language — the service shut down on 2025-05-30, accounts and data were deleted, no specification or conformance mechanism ever existed, and the engine’s parser never published. Main strengths: static typing with ?./??/! null handling, FSL schema-as-code with enforced field definitions and check constraints, composable queries with no injection surface, and concise TypeScript-familiar syntax. Main weaknesses: a functional model with a real learning curve, no in-language error handling or result type, no debugging or query-plan tooling, single-vendor governance of a now-defunct proprietary engine, and a lifecycle that ended with the vendor’s funding rather than with any technical failure.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193