Leonardo Losoviz

  https://leoloso.com/ Freelance developer and writer, with an ongoing quest to integrate innovative paradigms into existing PHP frameworks, and unifying all of them into a single mental model.

     



15 Stories by Leonardo Losoviz

Supporting opt-in nested mutations in GraphQL

We argue the benefits of supporting nested mutations as an opt-in feature in GraphQL.
0 8 min read

Coding a GraphQL server in JavaScript vs. WordPress

Explore how building a GraphQL solution for WordPress may diverge from the standard JavaScript guidelines on several circumstances.
0 12 min read

Coding in PHP 7.4 and deploying to 7.1 via Rector and GitHub Actions

PHP developers want to have access to the latest features of the language, but for various reasons, they may not be able to. It...
2 12 min read

Transpiling PHP code from 8.0 to 7.x via Rector

With Rector, we can write code with PHP 8.0 features and deploy it to an environment running lower versions.
0 7 min read

Adding directives to the schema in code-first GraphQL servers

See how code-first GraphQL servers — which have no schema definition language — can manage to provide support for schema-type directives.
0 8 min read

Essentials for building your first Gutenberg block

Even if you already know the libraries used by Gutenberg, it can still feel daunting to get started. Here's where to start.
0 10 min read

Setting up your first Gutenberg project

Learn how to set up the development environment for WordPress' React-based Gutenberg editor, as well has how to create a new project.
0 6 min read

Creating an @export GraphQL directive

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

Treating GraphQL directives as middleware

Directives are among GraphQL's most powerful features, but that's only if the GraphQL server provides a good support for them.
0 14 min read

GraphQL directives are underrated

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...
3 12 min read

Versioning fields in GraphQL

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

Speeding up changes to the GraphQL schema

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...
0 7 min read