Leonardo Losoviz Freelance developer and writer, with an ongoing quest to integrate innovative paradigms into existing PHP frameworks, and unify all of them into a single mental model.

Stories by Leonardo Losoviz

Creating An @export GraphQL Directive

Creating an @export GraphQL directive

Dev

Until GraphQL adds an official @export directive to the spec, implementers need to code this functionality through a custom directive.

Leonardo Losoviz
Jul 1, 2020 ⋅ 11 min read
Treating GraphQL Directives As Middleware

Treating GraphQL directives as middleware

Dev

Directives are among GraphQL’s most powerful features, but that’s only if the GraphQL server provides a good support for them.

Leonardo Losoviz
Jun 24, 2020 ⋅ 14 min read
GraphQL Directives Are Underrated

GraphQL directives are underrated

Dev

You won’t read much about them in the countless blog posts about GraphQL scattered across the web, but directives are among the most powerful features of the popular query language.

Leonardo Losoviz
May 13, 2020 ⋅ 12 min read
Versioning Fields In GraphQL

Versioning fields in GraphQL

Dev

Unlike REST, GraphQL supports both versioning and evolution as methods to handle breaking changes.

Leonardo Losoviz
Apr 15, 2020 ⋅ 9 min read
Speeding Up Changes to the GraphQL Schema

Speeding up changes to the GraphQL schema

Dev

Principled GraphQL outlines an architectural strategy that enables teams to pluck resolvers in and out of the schema on an ad-hoc basis, making the schema dynamic.

Leonardo Losoviz
Apr 9, 2020 ⋅ 7 min read
Code-First Vs. Schema-First Development In GraphQL

Code-first vs. schema-first development in GraphQL

Dev

We analyze and compare the two approaches to creating a GraphQL service: schema-first and code-first.

Leonardo Losoviz
Feb 26, 2020 ⋅ 10 min read
Simplifying The GraphQL Data Model

Simplifying the GraphQL data model

Dev

Using components to represent your GraphQL data structure on the server side is optimal for simplicity.

Leonardo Losoviz
Feb 19, 2020 ⋅ 7 min read
Designing A GraphQL Server For Optimal Performance

Designing a GraphQL server for optimal performance

Dev

Of the many lessons learned from building a GraphQL server, conquering the N + 1 problem is among the most important.

Leonardo Losoviz
Feb 12, 2020 ⋅ 10 min read