Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/powershellweb/gql
Get GraphQL in PowerShell
https://github.com/powershellweb/gql
Last synced: 19 days ago
JSON representation
Get GraphQL in PowerShell
- Host: GitHub
- URL: https://github.com/powershellweb/gql
- Owner: PowerShellWeb
- License: mit
- Created: 2024-12-16T07:22:28.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2024-12-19T07:40:54.000Z (22 days ago)
- Last Synced: 2024-12-19T08:31:46.971Z (22 days ago)
- Language: PowerShell
- Size: 192 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# GQL
Get Graph Query Language with PowerShell.
GQL is a small PowerShell module for GraphQL.
It is designed to provide a simple GraphQL client in PowerShell.
We can use this as a direct client to GraphQL, without having to involve any other layer.
## GQL Container
You can use the GQL module within a container:
~~~powershell
docker pull ghcr.io/powershellweb/gql
docker run -it ghcr.io/powershellweb/gql
~~~### Installing and Importing
~~~PowerShell
Install-Module GQL -Scope CurrentUser -Force
Import-Module GQL -Force -PassThru
~~~### Get-GQL
To connect to a GQL and get results, use [Get-GQL](Get-GQL.md), or, simply `GQL`.
(like all functions in PowerShell, it is case-insensitive)
### More Examples
#### Get-GQL Example 1
~~~powershell
# Getting git sponsorship information from GitHub GraphQL.
# **To use this example, we'll need to provide `$MyPat` with a Personal Access Token.**
Get-GQL -Query ./Examples/GitSponsors.gql -PersonalAccessToken $myPat
~~~
#### Get-GQL Example 2~~~powershell
# We can decorate graph object results to customize them.
~~~