Hot Chocolate is the premier GraphQL server for .NET. Version 11 brings “Zero Latency” execution engine improvements. Setup Projection The real power is in [UseProjection]. It translates nested GraphQL queries into optimized EF Core SQL queries (SELECT only what is requested).
Read more →Tag: API
gRPC-Web: Bringing gRPC to Browser Applications
gRPC is great for microservices, but browsers don’t support HTTP/2 trailers required for standard gRPC. **gRPC-Web** is the protocol adaptation that makes it possible. In .NET, we can now host gRPC-Web services natively alongside standard gRPC. Configuring .NET Server Client Consumption Key Takeaways No need for an external Envoy proxy anymore (though still valid). Performance […]
Read more →GraphQL with .NET: Hot Chocolate Library
Hot Chocolate is the premier GraphQL server for .NET. Unlike Rest APIs, GraphQL allows clients to ask for exactly what they need, solving over-fetching. Hot Chocolate 11 brings massive performance improvements and the “Banana Cake Pop” IDE. Schema Definition (Code-First) Handling Relationships (DataLoaders) The “N+1 Problem” is the enemy of GraphQL. Use DataLoaders to batch […]
Read more →Microsoft Graph API: Working with Users and Groups
Graph API gives you access to Azure AD users and groups. Here are common operations you’ll need. Get Current User List Users Get User’s Groups Permissions Needed User.Read – Read own profile User.Read.All – Read all users GroupMember.Read.All – Read group memberships References Graph Users API
Read more →Office 365 Development: Microsoft Graph API Basics
Microsoft Graph is the gateway to Office 365 data. Users, emails, calendars, files—it’s all accessible through one unified API. Here’s how to get started. What is Microsoft Graph? Graph is a REST API that provides access to Microsoft 365 services. Instead of separate APIs for SharePoint, Exchange, Teams, etc., you use one endpoint: https://graph.microsoft.com Authentication […]
Read more →Node.js REST API with Express: Complete Guide
Express is still the go-to framework for Node.js APIs. It’s minimal, flexible, and has a massive ecosystem. Here’s how to build a production-ready REST API from scratch. Project Setup Basic Server Organizing Routes Input Validation Never trust user input. Use express-validator: Async Error Handling References Express.js Documentation Node.js Best Practices
Read more →