Skip to content

Instantly share code, notes, and snippets.

View michelsolognier's full-sized avatar

MMSolognier michelsolognier

  • Proficium
  • Breukelen
View GitHub Profile
@petrsvihlik
petrsvihlik / GitHub-GraphQL-PowerBI.m
Last active February 16, 2024 17:16
Loading GraphQL data (GitHub API v4) into PowerBI
// This script shows how to use M language (Power Query Formula Language)
// to read data from GitHub API v4 using a POST request.
// This can come in handy when building PowerBI reports that utilize GraphQL endpoints for loading data.
let
vUrl = "https://api.github.com/graphql",
vHeaders =[
#"Method"="POST",
#"Content-Type"="application/json",
#"Authorization"="Bearer <your_personal_token_here>"