onmagnoliasquare / website

On Magnolia Square website monorepo for frontend and backend.
https://onmagnoliasquare.com
MIT License
0 stars 0 forks source link

Design pattern for sanity querying #152

Closed n30w closed 3 days ago

n30w commented 1 week ago

Description

Right now, there exists individual functions for all sanity querying. This is okay, but it leads to messy code. To simplify this, use the fluent design pattern, or perhaps the builder or factory pattern, to create a query programmatically.

Links

Additional context

No response

n30w commented 3 days ago

Didn't use fluent design pattern. This is resolved in 35230d3e9ec8cc871edc297fce5b7fdd807f802a.