Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@klevn/gql-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klevn/gql-client - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

32

gql-client.ts
import fetch, {HeadersInit} from "node-fetch"
interface Connection {
export interface Connection {
url: string,

@@ -8,3 +8,3 @@ headers?: HeadersInit

class GqlClient {
export default class GqlClient {
constructor(public connection:Connection, public GQL:string) {

@@ -34,28 +34,2 @@

}
}
const GQL = `
query hello($pass: String!){
todoHistoryByPassword(password: $pass) {
_id
}
}
query world($pass: String!){
todoHistoryByPassword(password: $pass) {
_id
}
}
`
const gql = new GqlClient({
url: "https://graphql.eu.fauna.com/graphql",
headers: {
"authorization": "Basic Zm5BRTJBY1dnZEFBMEdvaFQ4U0ZZdW9ROXRERUZPWVhCU1pfSzdVODp0b2RvLWRhaWx5OmFkbWlu"
}
}, GQL)
gql.run("world", {
pass: "hello"
}).then(console.log)
}

@@ -9,3 +9,3 @@ {

"name": "@klevn/gql-client",
"version": "1.0.0",
"version": "1.0.1",
"main": "gql-client.ts",

@@ -12,0 +12,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc