Urgent.News

What's breaking now, across thousands of outlets.

Tech

GraphQL para Iniciantes: Guia Completo com .NET

Introdução GraphQL é uma linguagem de consulta para APIs e um runtime que executa essas consultas sobre um schema tipado. Em vez de receber sempre uma representação fixa de um recurso, o cliente descreve os campos de que precisa; o servidor valida a operação, chama os resolvers responsáveis e devolve um JSON com aquele formato. Eu consideraria GraphQL quando diferentes clientes precisam de…

Original Portuguese Read in English

GraphQL is a query language for APIs and a runtime that executes these queries using a schema. It allows clients to request exactly the data they need and receive it in a JSON format. This can be particularly useful when different clients require different combinations of data or when a screen depends on related information that would otherwise require multiple calls.

However, this flexibility does not automatically make GraphQL faster, smaller, or simpler than REST; it shifts some of the work to the schema and resolvers. The client chooses the fields, but the server still handles authorization, validation, query limits, pagination, and efficient data access. If not controlled properly, a query can still make the backend perform unnecessary work.

This guide explains GraphQL's schema, types, queries, mutations, and resolvers, and demonstrates an executable implementation using GraphQL.NET in ASP.NET Core/.NET 10. It also compares this approach to a REST endpoint, and outlines what a production API would need to add. The sample tested uses GraphQL.NET 8.8.5, GraphQL.Server.Transports.AspNetCore 8.3.3, and .NET SDK 10.0.402.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Choosing an On-Premises Ticket Management Tool: A Practitioner’s Guide

An on-premises ticket queue can become difficult to operate when requests arrive through different channels, ownership is unclear, or users have to ask for updates.

  • Choose tool based on specific work (ITSM, customer support, software issue tracking)
  • Verify intake, assignment, resolution workflow fits team
  • Evaluate operational ownership of tool (infrastructure, upgrades, support)

CVE-2026-106931 Observability Gaps on the Web Server Itself

CVE-2026-106931 Observability Gaps on the Web Server Itself Most vulnerability response advice points at the product. For CVE-2026-106931 the useful question points at the host, because the flaw…

  • SiteGuard Server Edition contains OS command injection flaw (CVE-2026-106931)
  • Vulnerability allows root or SYSTEM-level execution, CVSS scores 8.5 and 7.8
  • Host-level logging and telemetry needed to detect command execution

"new row violates row-level security policy": why data won't save in Supabase

A user fills in a form, presses Save, and nothing happens. The console or logs show "new row violates row-level security policy for table", followed by the table name.

  • User submits form, clicks Save, but data fails to save
  • Row-level security (RLS) policy violated, preventing data insertion
  • Adding policy granting appropriate permissions resolves issue

Offline-First Sync Failures That Flight Mode Won't Show You

* Clock skew, deletes that come back, duplicate entries on a flaky connection, and old databases: the tests I added after auditing my own Flutter app.

  • Inaccurate device clocks can cause data loss via LWW approach
  • Deleting then editing an entry can reappear after syncing
  • Simultaneous edits create duplicate entries before conflict resolution

More from Monday 26 October →